pub type CharacterValue = CharacterValueEnum<Droid, Human>;
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
impl From<Droid> for CharacterValue
source§impl From<Human> for CharacterValue
impl From<Human> for CharacterValue
source§impl<__S> GraphQLInterface<__S> for CharacterValuewhere
__S: ScalarValue,
impl<__S> GraphQLInterface<__S> for CharacterValuewhere
__S: ScalarValue,
source§impl<__S> GraphQLType<__S> for CharacterValuewhere
__S: ScalarValue,
impl<__S> GraphQLType<__S> for CharacterValuewhere
__S: ScalarValue,
source§impl<__S> GraphQLValue<__S> for CharacterValuewhere
__S: ScalarValue,
impl<__S> GraphQLValue<__S> for CharacterValuewhere
__S: ScalarValue,
§type Context = Database
type Context = Database
Context type for this
GraphQLValue
. Read more§type TypeInfo = ()
type TypeInfo = ()
Type that may carry additional schema information for this
GraphQLValue
. Read moresource§fn resolve_field(
&self,
info: &Self::TypeInfo,
field: &str,
args: &Arguments<'_, __S>,
executor: &Executor<'_, '_, Self::Context, __S>
) -> ExecutionResult<__S>
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 moresource§fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
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 moresource§fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
_: Option<&[Selection<'_, __S>]>,
executor: &Executor<'_, '_, Self::Context, __S>
) -> ExecutionResult<__S>
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 moresource§impl<__S> GraphQLValueAsync<__S> for CharacterValue
impl<__S> GraphQLValueAsync<__S> for CharacterValue
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>>
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 moresource§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>>
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