Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
abhijitkadam opened this issue Feb 15, 2022 · 0 comments

Comments

@abhijitkadam
Copy link

abhijitkadam commented Feb 15, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant