Having an existing Rust struct which is also represented in the flatbuffers schema and thus in the autogenerated code.., is there any derive or traits we can implement in our struct so it can seamlessly serialize it into the builder, rather than having to manually convert from our struct to the one created by the autogenerated code?
Imagine a simple struct like:
struct DominantSpeakerNotification {
producer_id: ProducerId,
}
Which has an analogous flatbuffers table which leads to the autogenerated code:
pub struct DominantSpeakerNotification {
pub producer_id: ::planus::alloc::string::String,
}
Is there any derive or trait we could implement to serialize our DominantSpeakerNotification into the builder?
Having an existing Rust struct which is also represented in the flatbuffers schema and thus in the autogenerated code.., is there any derive or traits we can implement in our struct so it can seamlessly serialize it into the builder, rather than having to manually convert from our struct to the one created by the autogenerated code?
Imagine a simple struct like:
Which has an analogous flatbuffers table which leads to the autogenerated code:
Is there any derive or trait we could implement to serialize our
DominantSpeakerNotificationinto the builder?