tafia / quick-protobuf

A rust implementation of protobuf parser
MIT License
446 stars 82 forks source link

Custom struct derive not added to oneof option i.e. to generated OneOfidentity enum #212

Open abhijitkadam opened 2 years ago

abhijitkadam commented 2 years ago

For proto: `message Transaction { oneof identity { TokenData token = 1; bytes publickey = 2; }

}`

If I execute:

pb-rs transaction.proto -C serde::Serialize,serde::Deserialize

Then following is created without custom derive that bubbles up and gives error:

#[derive(Debug, PartialEq, Clone)] pub enum OneOfidentity<'a> { token(.....