pub struct EmptyMutation<T: ?Sized = ()>(/* private fields */);
Expand description
Utility type to define read-only schemas
If you instantiate RootNode
with this as the mutation, no mutation will be
generated for the schema.
Implementations§
Trait Implementations§
Source§impl<T> Default for EmptyMutation<T>
impl<T> Default for EmptyMutation<T>
Source§impl<S, T> GraphQLType<S> for EmptyMutation<T>where
S: ScalarValue,
impl<S, T> GraphQLType<S> for EmptyMutation<T>where
S: ScalarValue,
Source§impl<S, T> GraphQLValue<S> for EmptyMutation<T>where
S: ScalarValue,
impl<S, T> GraphQLValue<S> for EmptyMutation<T>where
S: ScalarValue,
Source§type Context = T
type Context = T
Context type for this
GraphQLValue
. Read moreSource§type TypeInfo = ()
type TypeInfo = ()
Type that may carry additional schema information for this
GraphQLValue
. Read moreSource§fn resolve_field(
&self,
_info: &Self::TypeInfo,
_field_name: &str,
_arguments: &Arguments<'_, S>,
_executor: &Executor<'_, '_, Self::Context, S>,
) -> ExecutionResult<S>
fn resolve_field( &self, _info: &Self::TypeInfo, _field_name: &str, _arguments: &Arguments<'_, S>, _executor: &Executor<'_, '_, Self::Context, S>, ) -> ExecutionResult<S>
Resolves the value of a single field on this
GraphQLValue
. Read moreSource§fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<'_, S>]>,
executor: &Executor<'_, '_, Self::Context, S>,
) -> ExecutionResult<S>
fn resolve_into_type( &self, info: &Self::TypeInfo, type_name: &str, selection_set: 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§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§impl<S, T> GraphQLValueAsync<S> for EmptyMutation<T>
impl<S, T> GraphQLValueAsync<S> for EmptyMutation<T>
Source§fn resolve_field_async<'a>(
&'a self,
_info: &'a Self::TypeInfo,
_field_name: &'a str,
_arguments: &'a Arguments<'_, S>,
_executor: &'a Executor<'_, '_, Self::Context, S>,
) -> BoxFuture<'a, ExecutionResult<S>>
fn resolve_field_async<'a>( &'a self, _info: &'a Self::TypeInfo, _field_name: &'a str, _arguments: &'a Arguments<'_, S>, _executor: &'a Executor<'_, '_, Self::Context, S>, ) -> BoxFuture<'a, ExecutionResult<S>>
Resolves the value of a single field on this
GraphQLValueAsync
. Read moreSource§fn resolve_into_type_async<'a>(
&'a self,
info: &'a Self::TypeInfo,
type_name: &str,
selection_set: Option<&'a [Selection<'a, S>]>,
executor: &'a Executor<'a, 'a, Self::Context, S>,
) -> BoxFuture<'a, ExecutionResult<S>>
fn resolve_into_type_async<'a>( &'a self, info: &'a Self::TypeInfo, type_name: &str, selection_set: Option<&'a [Selection<'a, S>]>, executor: &'a Executor<'a, 'a, Self::Context, S>, ) -> BoxFuture<'a, ExecutionResult<S>>
Resolves this
GraphQLValueAsync
(being an interface or an union) into a
concrete downstream object type. Read moreSource§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>>
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>>
Auto Trait Implementations§
impl<T> Freeze for EmptyMutation<T>where
T: ?Sized,
impl<T = ()> !RefUnwindSafe for EmptyMutation<T>
impl<T> Send for EmptyMutation<T>where
T: ?Sized,
impl<T> Sync for EmptyMutation<T>where
T: ?Sized,
impl<T> Unpin for EmptyMutation<T>where
T: ?Sized,
impl<T = ()> !UnwindSafe for EmptyMutation<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more