pub fn parse_enum<T: EnumType + InputType>(value: Value) -> InputValueResult<T>
Expand description

Parse a value as an enum value.

This can be used to implement InputType::parse.