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

pub fn enum_value<T: EnumType>(value: T) -> Value

Convert the enum value into a GraphQL value.

This can be used to implement InputValueType::to_value or OutputValueType::resolve.