Use https://crates.io/crates/strum for the FromStr implementation, and include a few useful overrides that make it easy to specify a model from a user provided string.
Note: strum contains a ToString implementation too, but it doesn't currently handle writing the contents of a default Tuple-like enum (Model::Other(String)), but there is a PR for fixing that at:
Use https://crates.io/crates/strum for the FromStr implementation, and include a few useful overrides that make it easy to specify a model from a user provided string.
Note: strum contains a ToString implementation too, but it doesn't currently handle writing the contents of a default Tuple-like enum (
Model::Other(String)
), but there is a PR for fixing that at: