Trait juniper::AsDynGraphQLValue
source · pub trait AsDynGraphQLValue<S: ScalarValue = DefaultScalarValue> {
type Context;
type TypeInfo;
// Required methods
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§
sourcetype Context
type Context
Context type of this GraphQLValue
.
sourcetype TypeInfo
type TypeInfo
Schema information type of this GraphQLValue
.
Required Methods§
sourcefn as_dyn_graphql_value(
&self
) -> &DynGraphQLValue<S, Self::Context, Self::TypeInfo>
fn as_dyn_graphql_value( &self ) -> &DynGraphQLValue<S, Self::Context, Self::TypeInfo>
Converts this value to a DynGraphQLValue
trait object.
sourcefn as_dyn_graphql_value_async(
&self
) -> &DynGraphQLValueAsync<S, Self::Context, Self::TypeInfo>
fn as_dyn_graphql_value_async( &self ) -> &DynGraphQLValueAsync<S, Self::Context, Self::TypeInfo>
Converts this value to a DynGraphQLValueAsync
trait object.