boo so this approach is no longer cool 🙁
impl std::fmt::Display for DummyEnum {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
write!(f, "{self:?}")
}
}
btw nice repo to avoid boilerplate code when dealing with enum/string conversions
https://github.com/Peternator7/strum/tree/master#programming #rust #useful_repositories