Is there compile option for generating message struct containing enumeration use enum-type version by default, instead of i32
?
#1146
-
destruct and construct those messages with i32 filed are annoying, and unsafe in someway |
Beta Was this translation helpful? Give feedback.
Answered by
caspermeijn
Sep 3, 2024
Replies: 1 comment 1 reply
-
The short answer is: no.
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. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
caspermeijn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.