I'm writing a gRPC micro service and trying to use enum in some of my protobuf schemas. I haven't found any sample code to get or set enum values in gRPC requests/responses. Is there any example rs code that demonstrates the best ways to do this. Perhaps this is not supported or should be avoided?
How are you generating the rust code for the protobuf definitions? If you're using
prost docs on enums should apply
Yes I am generating using tonic and have that annotation. Can you direct me to some sample code?
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.