-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide Default
deriving
#102
Comments
@ljbade : Thanks for reporting this. I had looked at having a derive In the meanwhile some way this can be handled is - In your app crate, make this generated code as part of the crate (keep the generated code private or crate-public) and then you can do a derive on that crate. An example of this can be seen here I will still revisit the default for |
I see what you mean about the default value for |
I will try your example, that might work |
The issue here is - you have to have all members I will revisit this and see if this can be done in a manner that makes sense for most use cases (it will be opt-in and not opt-out) otherwise close this issue with appropriate reasoning. Make sense? |
Adding a option to derive
Default
would make it easier to fill out large structures which are mostly left atNone
or 0The text was updated successfully, but these errors were encountered: