pub fn new<T>(name: Cow<'a, str>, values: &[EnumValue]) -> Self
    where
        T: FromInputValue<S>,
    {
        EnumMeta {
            name,
            description: None,
            values: values.to_vec(),
            try_parse_fn: try_parse_fn::<S, T>,
        }
    }
/// Build a new enum type with the specified name and possible values
Build a new enum type with the specified name and possible values
Build a new enum type with the specified name and possible values
pub fn new<T>(name: Cow<'a, str>, values: &[EnumValue]) -> Self
    where
        T: FromInputValue<S>,
    {
        EnumMeta {
            name,
            description: None,
            values: values.to_vec(),
            try_parse_fn: try_parse_fn::<S, T>,
        }
    }
pub fn new < T > ( name : Cow < ' a , str > , values : & [ EnumValue ] ) -> Self where T : FromInputValue < S > , { EnumMeta { name , description : None , values : values . to_vec ( ) , try_parse_fn : try_parse_fn :: < S , T > , } }
Build a new enum type with the specified name and possible values
Build a new enum type with the specified name and possible values
name
Cow<'a, str>
values
&[EnumValue]
name
Cow<'a, str>
values
&[EnumValue]