martin-g commented on issue #247: URL: https://github.com/apache/avro-rs/issues/247#issuecomment-3574787541
> and as soon as it encountered a struct with flatten fields Only apache-avro-derive reads attributes via proc macros. There is no logic in apache-avro that could possibly help you with attribute like `#[serde(...)]`. The above means: it is your responsibility to provide an Avro schema that could be used to serialize a given Rust struct! This is what apache-avro-derive does - it reads the attributes (`#[avro(...)]` and some `#[serde(...)]` ones) to generate an Avro schema that could be used for your Rust struct. -- 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]
