[ 
https://issues.apache.org/jira/browse/AVRO-3664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17630700#comment-17630700
 ] 

Aaron Spiegel commented on AVRO-3664:
-------------------------------------

Thanks, [~mgrigorov] .  I have a PR in progress, but have a bit more work to do 
on it. I'll try to restate the description a bit to be more clear anyhow.

When I'm creating a new Struct or Enum and I want to use it with Avro Rust – 
either by implementing `AvroSchemaComponent`, or deriving `AvroSchema`, I still 
have to implement the `From` conversion interfaces for my Struct or Enum. As a 
user, I'd like to derive a trait to implement `From<Value>` and `Into<Value>`.

> Add Rust Avro Value conversion derive implementations
> -----------------------------------------------------
>
>                 Key: AVRO-3664
>                 URL: https://issues.apache.org/jira/browse/AVRO-3664
>             Project: Apache Avro
>          Issue Type: New Feature
>          Components: rust
>            Reporter: Aaron Spiegel
>            Priority: Major
>
> Given the current constraints of the _AvroSchema_ derive macro, it is 
> possible to also derive the following implementations:
> {code:java}
> impl From<apache_avro::types::Value> for X {...}
> impl from<X> for apache_avro::types::Value {...}{code}
> With these traits implemented, serialization in Avro becomes considerably 
> simpler, for schemas that are already generated through a derive macro.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to