pub type CharacterValue = CharacterValueEnum<Human, Droid>;
Expand description

Opaque value represented by Character GraphQL interface.

Aliased Type§

enum CharacterValue {
    // some variants omitted
}

Variants§

Trait Implementations§

source§

impl From<Droid> for CharacterValue

source§

fn from(v: Droid) -> Self

Converts to this type from the input type.
source§

impl From<Human> for CharacterValue

source§

fn from(v: Human) -> Self

Converts to this type from the input type.
source§

impl<__S> GraphQLInterface<__S> for CharacterValue
where __S: ScalarValue,

source§

fn mark()

An arbitrary function without meaning. Read more
source§

impl<__S> GraphQLType<__S> for CharacterValue
where __S: ScalarValue,

source§

fn name(_: &Self::TypeInfo) -> Option<&'static str>

Returns name of this GraphQLType to expose. Read more
source§

fn meta<'r>( info: &Self::TypeInfo, registry: &mut Registry<'r, __S> ) -> MetaType<'r, __S>
where __S: 'r,

Returns MetaType representing this GraphQLType.
source§

impl<__S> GraphQLValue<__S> for CharacterValue
where __S: ScalarValue,

§

type Context = Database

Context type for this GraphQLValue. Read more
§

type TypeInfo = ()

Type that may carry additional schema information for this GraphQLValue. Read more
source§

fn type_name<'__i>(&self, info: &'__i Self::TypeInfo) -> Option<&'__i str>

Returns name of the GraphQLType exposed by this GraphQLValue. Read more
source§

fn resolve_field( &self, info: &Self::TypeInfo, field: &str, args: &Arguments<'_, __S>, executor: &Executor<'_, '_, Self::Context, __S> ) -> ExecutionResult<__S>

Resolves the value of a single field on this GraphQLValue. Read more
source§

fn concrete_type_name( &self, context: &Self::Context, info: &Self::TypeInfo ) -> String

Returns the concrete GraphQLType name for this GraphQLValue being an interface, an union or an object. Read more
source§

fn resolve_into_type( &self, info: &Self::TypeInfo, type_name: &str, _: Option<&[Selection<'_, __S>]>, executor: &Executor<'_, '_, Self::Context, __S> ) -> ExecutionResult<__S>

Resolves this GraphQLValue (being an interface or an union) into a concrete downstream object type. Read more
source§

fn resolve( &self, info: &Self::TypeInfo, selection_set: Option<&[Selection<'_, S>]>, executor: &Executor<'_, '_, Self::Context, S> ) -> ExecutionResult<S>

Resolves the provided selection_set against this GraphQLValue. Read more
source§

impl<__S> GraphQLValueAsync<__S> for CharacterValue
where __S: ScalarValue + Send + Sync, Self: Sync,

source§

fn resolve_field_async<'b>( &'b self, info: &'b Self::TypeInfo, field: &'b str, args: &'b Arguments<'_, __S>, executor: &'b Executor<'_, '_, Self::Context, __S> ) -> BoxFuture<'b, ExecutionResult<__S>>

Resolves the value of a single field on this GraphQLValueAsync. Read more
source§

fn resolve_into_type_async<'b>( &'b self, info: &'b Self::TypeInfo, type_name: &str, _: Option<&'b [Selection<'b, __S>]>, executor: &'b Executor<'b, 'b, Self::Context, __S> ) -> BoxFuture<'b, ExecutionResult<__S>>

Resolves this GraphQLValueAsync (being an interface or an union) into a concrete downstream object type. Read more
source§

fn resolve_async<'a>( &'a self, info: &'a Self::TypeInfo, selection_set: Option<&'a [Selection<'_, S>]>, executor: &'a Executor<'_, '_, Self::Context, S> ) -> BoxFuture<'a, ExecutionResult<S>>

Resolves the provided selection_set against this GraphQLValueAsync. Read more
source§

impl<__S> IsOutputType<__S> for CharacterValue
where __S: ScalarValue,

source§

fn mark()

An arbitrary function without meaning. Read more