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

Required methods

Returns a instance of variant of Self which matches input if exists, else returns possible matches

Returns the string representation of selfs variant

Implementors