Closed gudjonragnar closed 3 years ago
Sure, it could be a --derive-builder
like there is --variant-access
.
Let me know if you want to do a PR for that, otherwise I can give it a try.
I created a PR, not sure if it is sufficient but please take a look.
Released in 0.9.7
.
I think it could be a great addition to the project to add the option to generate or derive builders for the generated structs, for example using this crate: https://github.com/colin-kiegel/rust-derive-builder.