Re:Rust for JavaScript Developers – Pattern Matching and Enums
by onei on Sunday July 12, 2020 @01:55PM
(#23813239)
I don't think that's protobuf's fault, it's simply a side effect of the common pattern in C of using memset when you initialise structs. I don't think there's a really good way around it other than remembering to think like a C programmer every now and then.
I guess one option is to replace the endpoints that use the enum, but that seems heavy handed if it's wide spread.
I guess one option is to replace the endpoints that use the enum, but that seems heavy handed if it's wide spread.