Function async_graphql::resolver_utils::enum_value[][src]

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.