pub fn enum_value<T: EnumType>(value: T) -> Value
Convert the enum value into a GraphQL value.
This can be used to implement InputType::to_value or OutputType::resolve.
InputType::to_value
OutputType::resolve