René's URL Explorer Experiment


Title: GitHub - steadylearner/born: Remove code duplication from Struct and Enum with functional macros.

Open Graph Title: GitHub - steadylearner/born: Remove code duplication from Struct and Enum with functional macros.

X Title: GitHub - steadylearner/born: Remove code duplication from Struct and Enum with functional macros.

Description: Remove code duplication from Struct and Enum with functional macros. - steadylearner/born

Open Graph Description: Remove code duplication from Struct and Enum with functional macros. - steadylearner/born

X Description: Remove code duplication from Struct and Enum with functional macros. - steadylearner/born

Opengraph URL: https://github.com/steadylearner/born

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository
route-controllerfiles
route-actiondisambiguate
fetch-noncev2:2d981261-3bab-384c-7fb2-490ac2a992f1
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-idBA60:32A342:7DCD06:B08E79:698CA136
html-safe-nonce54e9a956c4ea449329d5b71928a01695fec0d848e015a8710494d7151b33ba03
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTYwOjMyQTM0Mjo3RENEMDY6QjA4RTc5OjY5OENBMTM2IiwidmlzaXRvcl9pZCI6IjQyNjEzMzM3MTM4MTg1MjYwMDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccafbddd6fd4bd462007947f9629bf345788816128a4b7c5fafd2e22297551b70
hovercard-subject-tagrepository:266154463
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location//
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/steadylearner/born
twitter:imagehttps://opengraph.githubassets.com/cc244abc18999d5b33ba9810626ec3f7c4e1c0a4cae4f5e12c9598e7e15383be/steadylearner/born
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cc244abc18999d5b33ba9810626ec3f7c4e1c0a4cae4f5e12c9598e7e15383be/steadylearner/born
og:image:altRemove code duplication from Struct and Enum with functional macros. - steadylearner/born
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4
turbo-cache-controlno-preview
go-importgithub.com/steadylearner/born git https://github.com/steadylearner/born.git
octolytics-dimension-user_id32325099
octolytics-dimension-user_loginsteadylearner
octolytics-dimension-repository_id266154463
octolytics-dimension-repository_nwosteadylearner/born
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id266154463
octolytics-dimension-repository_network_root_nwosteadylearner/born
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3d444f0a47beeeac94cddbb51c91ab408befe8d4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/steadylearner/born#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsteadylearner%2Fborn
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsteadylearner%2Fborn
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E&source=header-repo&source_repo=steadylearner%2Fborn
Reloadhttps://patch-diff.githubusercontent.com/steadylearner/born
Reloadhttps://patch-diff.githubusercontent.com/steadylearner/born
Reloadhttps://patch-diff.githubusercontent.com/steadylearner/born
steadylearner https://patch-diff.githubusercontent.com/steadylearner
bornhttps://patch-diff.githubusercontent.com/steadylearner/born
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fsteadylearner%2Fborn
Fork 5 https://patch-diff.githubusercontent.com/login?return_to=%2Fsteadylearner%2Fborn
Star 51 https://patch-diff.githubusercontent.com/login?return_to=%2Fsteadylearner%2Fborn
docs.rs/bornhttps://docs.rs/born
Apache-2.0 LICENSE-APACHE https://patch-diff.githubusercontent.com/steadylearner/born/blob/master/LICENSE-APACHE
MIT LICENSE-MIT https://patch-diff.githubusercontent.com/steadylearner/born/blob/master/LICENSE-MIT
51 stars https://patch-diff.githubusercontent.com/steadylearner/born/stargazers
5 forks https://patch-diff.githubusercontent.com/steadylearner/born/forks
Branches https://patch-diff.githubusercontent.com/steadylearner/born/branches
Tags https://patch-diff.githubusercontent.com/steadylearner/born/tags
Activity https://patch-diff.githubusercontent.com/steadylearner/born/activity
Star https://patch-diff.githubusercontent.com/login?return_to=%2Fsteadylearner%2Fborn
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fsteadylearner%2Fborn
Code https://patch-diff.githubusercontent.com/steadylearner/born
Issues 0 https://patch-diff.githubusercontent.com/steadylearner/born/issues
Pull requests 0 https://patch-diff.githubusercontent.com/steadylearner/born/pulls
Actions https://patch-diff.githubusercontent.com/steadylearner/born/actions
Projects 0 https://patch-diff.githubusercontent.com/steadylearner/born/projects
Security 0 https://patch-diff.githubusercontent.com/steadylearner/born/security
Insights https://patch-diff.githubusercontent.com/steadylearner/born/pulse
Code https://patch-diff.githubusercontent.com/steadylearner/born
Issues https://patch-diff.githubusercontent.com/steadylearner/born/issues
Pull requests https://patch-diff.githubusercontent.com/steadylearner/born/pulls
Actions https://patch-diff.githubusercontent.com/steadylearner/born/actions
Projects https://patch-diff.githubusercontent.com/steadylearner/born/projects
Security https://patch-diff.githubusercontent.com/steadylearner/born/security
Insights https://patch-diff.githubusercontent.com/steadylearner/born/pulse
Brancheshttps://patch-diff.githubusercontent.com/steadylearner/born/branches
Tagshttps://patch-diff.githubusercontent.com/steadylearner/born/tags
https://patch-diff.githubusercontent.com/steadylearner/born/branches
https://patch-diff.githubusercontent.com/steadylearner/born/tags
31 Commitshttps://patch-diff.githubusercontent.com/steadylearner/born/commits/master/
https://patch-diff.githubusercontent.com/steadylearner/born/commits/master/
exampleshttps://patch-diff.githubusercontent.com/steadylearner/born/tree/master/examples
exampleshttps://patch-diff.githubusercontent.com/steadylearner/born/tree/master/examples
srchttps://patch-diff.githubusercontent.com/steadylearner/born/tree/master/src
srchttps://patch-diff.githubusercontent.com/steadylearner/born/tree/master/src
templateshttps://patch-diff.githubusercontent.com/steadylearner/born/tree/master/templates
templateshttps://patch-diff.githubusercontent.com/steadylearner/born/tree/master/templates
testshttps://patch-diff.githubusercontent.com/steadylearner/born/tree/master/tests
testshttps://patch-diff.githubusercontent.com/steadylearner/born/tree/master/tests
.gitignorehttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/.gitignore
.gitignorehttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/.gitignore
.ignorehttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/.ignore
.ignorehttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/.ignore
.travis.ymlhttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/.travis.yml
.travis.ymlhttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/.travis.yml
CHANGELOG.mdhttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/CHANGELOG.md
CHANGELOG.mdhttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/CHANGELOG.md
Cargo.tomlhttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/Cargo.toml
Cargo.tomlhttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/Cargo.toml
LICENSE-APACHEhttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/LICENSE-APACHE
LICENSE-APACHEhttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/LICENSE-APACHE
LICENSE-MIThttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/LICENSE-MIT
LICENSE-MIThttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/LICENSE-MIT
README.mdhttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/README.md
README.mdhttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/README.md
unite_rust_and_python_with_born.pnghttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/unite_rust_and_python_with_born.png
unite_rust_and_python_with_born.pnghttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/unite_rust_and_python_with_born.png
READMEhttps://patch-diff.githubusercontent.com/steadylearner/born
Apache-2.0 licensehttps://patch-diff.githubusercontent.com/steadylearner/born
MIT licensehttps://patch-diff.githubusercontent.com/steadylearner/born
https://patch-diff.githubusercontent.com/steadylearner/born#reuse-common-parts-of-struct-and-enum
https://crates.io/crates/born
https://docs.rs/born/
Structhttps://doc.rust-lang.org/std/keyword.struct.html
Enumhttps://doc.rust-lang.org/std/keyword.enum.html
https://raw.githubusercontent.com/steadylearner/born/master/unite_rust_and_python_with_born.png
https://patch-diff.githubusercontent.com/steadylearner/born#why-this-library
FAST APIhttps://fastapi.tiangolo.com/tutorial/extra-models/#reduce-duplication
https://patch-diff.githubusercontent.com/steadylearner/born#examples
https://patch-diff.githubusercontent.com/steadylearner/born#struct
https://patch-diff.githubusercontent.com/steadylearner/born#enum
Compare it with the code example from the Rust documenation.https://doc.rust-lang.org/stable/rust-by-example/custom_types/enum.html
https://patch-diff.githubusercontent.com/steadylearner/born#details
It wouldn't be logical if a private struct or private enum can have public fields.https://doc.rust-lang.org/book/ch07-03-paths-for-referring-to-an-item-in-the-module-tree.html#making-structs-and-enums-public
https://patch-diff.githubusercontent.com/steadylearner/born#why-not-attribute-macro
You can reuse the fields with attribute macro also.https://github.com/steadylearner/born-attribute
If you want more, please read the official documenation about procedural macros.https://doc.rust-lang.org/reference/procedural-macros.html#attribute-macros
https://patch-diff.githubusercontent.com/steadylearner/born#how-to-test-it
trybuildhttps://github.com/dtolnay/trybuild
rustfmthttps://github.com/rust-lang/rustfmt
cargo-expandhttps://github.com/dtolnay/cargo-expand
macrotesthttps://github.com/eupn/macrotest
trybuildhttps://github.com/dtolnay/trybuild
https://patch-diff.githubusercontent.com/steadylearner/born#examples-1
axumhttps://github.com/tokio-rs/axum
the bloghttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/examples/blog
Steadylearnerhttps://www.steadylearner.com
https://patch-diff.githubusercontent.com/steadylearner/born#license
Apache License, Version 2.0https://patch-diff.githubusercontent.com/steadylearner/born/blob/master/LICENSE-APACHE
MIT licensehttps://patch-diff.githubusercontent.com/steadylearner/born/blob/master/LICENSE-MIT
docs.rs/bornhttps://docs.rs/born
rust https://patch-diff.githubusercontent.com/topics/rust
macros https://patch-diff.githubusercontent.com/topics/macros
reuse-fields https://patch-diff.githubusercontent.com/topics/reuse-fields
Readme https://patch-diff.githubusercontent.com/steadylearner/born#readme-ov-file
Apache-2.0 LICENSE-APACHE https://patch-diff.githubusercontent.com/steadylearner/born/blob/master/LICENSE-APACHE
MIT LICENSE-MIT https://patch-diff.githubusercontent.com/steadylearner/born/blob/master/LICENSE-MIT
Please reload this pagehttps://patch-diff.githubusercontent.com/steadylearner/born
Activityhttps://patch-diff.githubusercontent.com/steadylearner/born/activity
51 starshttps://patch-diff.githubusercontent.com/steadylearner/born/stargazers
1 watchinghttps://patch-diff.githubusercontent.com/steadylearner/born/watchers
5 forkshttps://patch-diff.githubusercontent.com/steadylearner/born/forks
Report repository https://patch-diff.githubusercontent.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Fsteadylearner%2Fborn&report=steadylearner+%28user%29
Releaseshttps://patch-diff.githubusercontent.com/steadylearner/born/releases
Packages 0https://patch-diff.githubusercontent.com/users/steadylearner/packages?repo_name=born
Please reload this pagehttps://patch-diff.githubusercontent.com/steadylearner/born
Rust 99.1% https://patch-diff.githubusercontent.com/steadylearner/born/search?l=rust
HTML 0.9% https://patch-diff.githubusercontent.com/steadylearner/born/search?l=html
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.