Kriskras99 commented on issue #350:
URL: https://github.com/apache/avro-rs/issues/350#issuecomment-3614253384

   Ah, I get the problem now.
   
   Looking at the derive code, it's not possible to get a `bytes` schema for a 
field. This is because we implement `AvroSchemaComponent` for `Vec<T>` as an 
array of `T`. Because Rust doesn't support specialisation (yet), we can't have 
a separate implementation for `Vec<u8>`.
   
   Thus, the only way to get a `bytes` is using a new type and manually 
implementing `AvroSchemaComponent` and `Serialize`/`Deserialize`, which is what 
you did. So unfortunately I don't have a better solution for you.


-- 
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