stepancheg / rust-protobuf

Rust implementation of Google protocol buffers
MIT License
2.81k stars 382 forks source link

Add supports of conversion between string and enum #664

Closed yestyle closed 1 year ago

yestyle commented 1 year ago

To support converting from &str to Enum and converting from Enum to String, add from_str() and implement Display for trait Enum respectively.

stepancheg commented 1 year ago

Merged with changes:

Thanks!