pub trait EnumVariantsStrings: Sized {
// Required methods
fn from_str(input: &str) -> Result<Self, &[&str]>;
fn to_str(&self) -> &'static str;
}
pub trait EnumVariantsStrings: Sized {
// Required methods
fn from_str(input: &str) -> Result<Self, &[&str]>;
fn to_str(&self) -> &'static str;
}