Struct juniper::EmptyMutation
source · pub struct EmptyMutation<T> { /* 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
sourceimpl<T> EmptyMutation<T>
impl<T> EmptyMutation<T>
sourcepub fn new() -> EmptyMutation<T>
pub fn new() -> EmptyMutation<T>
Construct a new empty mutation
Trait Implementations
sourceimpl<T: Debug> Debug for EmptyMutation<T>
impl<T: Debug> Debug for EmptyMutation<T>
sourceimpl<S, T> GraphQLType<S> for EmptyMutation<T>where
S: ScalarValue,
for<'b> &'b S: ScalarRefValue<'b>,
impl<S, T> GraphQLType<S> for EmptyMutation<T>where
S: ScalarValue,
for<'b> &'b S: ScalarRefValue<'b>,
sourcefn meta<'r>(_: &(), registry: &mut Registry<'r, S>) -> MetaType<'r, S>where
S: 'r,
for<'b> &'b S: ScalarRefValue<'b>,
fn meta<'r>(_: &(), registry: &mut Registry<'r, S>) -> MetaType<'r, S>where
S: 'r,
for<'b> &'b S: ScalarRefValue<'b>,
The meta type representing this GraphQL type.
sourcefn 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>
Resolve the value of a single field on this type. Read more
sourcefn 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>
Resolve this interface or union into a concrete type Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for EmptyMutation<T>where
T: RefUnwindSafe,
impl<T> Send for EmptyMutation<T>where
T: Send,
impl<T> Sync for EmptyMutation<T>where
T: Sync,
impl<T> Unpin for EmptyMutation<T>where
T: Unpin,
impl<T> UnwindSafe for EmptyMutation<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more