Kriskras99 opened a new pull request, #477:
URL: https://github.com/apache/avro-rs/pull/477

   `AvroSchemaComponent` is extended with a function `field_default` which will 
be called when deriving a record to set the default value for a field. The 
default implementation is to return `None`, which means no default.
   
   On the derive side, it is now possible to specify a default for a type using 
`#[avro(default = "..")]`. It is also possible to disable setting a default for 
a field with `#[avro(default = false)]`.
   
   This enables users to use `#[serde(skip_serializing{_if})]` on most fields 
without having to provide a default value.
   
   Closes #434 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to