pub trait AsDynGraphQLValue<S: ScalarValue = DefaultScalarValue> {
    type Context;
    type TypeInfo;

    fn as_dyn_graphql_value(
        &self
    ) -> &DynGraphQLValue<S, Self::Context, Self::TypeInfo>; fn as_dyn_graphql_value_async(
        &self
    ) -> &DynGraphQLValueAsync<S, Self::Context, Self::TypeInfo>; }
Expand description

Conversion of a GraphQLValue to its trait object.

Required Associated Types§

source

type Context

Context type of this GraphQLValue.

source

type TypeInfo

Schema information type of this GraphQLValue.

Required Methods§

source

fn as_dyn_graphql_value(
    &self
) -> &DynGraphQLValue<S, Self::Context, Self::TypeInfo>

Converts this value to a DynGraphQLValue trait object.

source

fn as_dyn_graphql_value_async(
    &self
) -> &DynGraphQLValueAsync<S, Self::Context, Self::TypeInfo>

Converts this value to a DynGraphQLValueAsync trait object.

Implementors§