Hi Mark,

There is an issue about this -
https://issues.apache.org/jira/browse/AVRO-3646
And a Pull Request - https://github.com/apache/avro/pull/1921 . It needs
more work! Any feedback is welcome!

On Thu, Apr 6, 2023 at 7:50 PM Mark de Jong <[email protected]> wrote:

> Hi,
>
> It would be great if you could support for deriving schema’s which are
> enums with named fields
>
> The code below does not compile
>
> error: AvroSchema derive does not work for enums with non unit structs
>
> If this already in or it will be in, when would you expect to have the
> crate up which would support this?
>
> #[derive(AvroSchema)]
> enum CartEvent {
>     Added { product_id: u32, quantity: u32 },
>     Deleted { product_id: u32 },
>     Updated { product_id: u32, quantity: u32 }
> }

Reply via email to