[][src]Function async_graphql::to_value

pub fn to_value<T>(value: T) -> Result<ConstValue, SerializerError> where
    T: Serialize

Convert a T into ConstValue which is an enum that can represent any valid GraphQL data.