Skip to content

Is there compile option for generating message struct containing enumeration use enum-type version by default, instead of i32? #1146

Closed Answered by caspermeijn
alissa-tung asked this question in Q&A
Discussion options

You must be logged in to vote

The short answer is: no.

prost-build will generate a getter for each enum field, which returns the enum type.

There are multiple issues and PR related to this. If you are interested in why this is the status quo, I suggest you read those.

Do you want to work on improving the generated API? If so, please contact me.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alissa-tung
Comment options

Answer selected by caspermeijn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants