-
Notifications
You must be signed in to change notification settings - Fork 86
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
Default values not respected #216
Comments
I assume you mean when doing |
I don't know much about deserialization in this case but if the I guess what I'm asking is should the |
Minimal Reproducible Example
pub mod schema;
fn main() {
let foo = schema::Foo{bar: 420, ..Default::default()};
print!("foo.bar: {} foo.baz: {}\n", foo.bar, foo.baz);
} expected result:
observed result:
|
Oh, by the way I think #247 should solve this (as part of our implementation of field presence, we had to fix the |
For example:
Generated rust code still defaults to
false
for fieldfoo
.The text was updated successfully, but these errors were encountered: