pub struct Mutation<'schema, 'fragreg>(/* private fields */)
where
'schema: 'fragreg;Expand description
Represents a Mutation operation over a given Schema.
Implementations§
Source§impl<'schema, 'fragreg> Mutation<'schema, 'fragreg>where
'schema: 'fragreg,
impl<'schema, 'fragreg> Mutation<'schema, 'fragreg>where
'schema: 'fragreg,
Sourcepub fn builder(
schema: &'schema Schema,
fragment_registry: &'fragreg FragmentRegistry<'schema>,
) -> MutationBuilder<'schema, 'fragreg>
pub fn builder( schema: &'schema Schema, fragment_registry: &'fragreg FragmentRegistry<'schema>, ) -> MutationBuilder<'schema, 'fragreg>
Convenience wrapper around MutationBuilder::new().
Sourcepub fn directives(&self) -> &Vec<DirectiveAnnotation>
pub fn directives(&self) -> &Vec<DirectiveAnnotation>
The list of DirectiveAnnotations applied to this Mutation.
Sourcepub fn def_location(&self) -> &SourceLocation
pub fn def_location(&self) -> &SourceLocation
The loc::SourceLocation indicating where this Mutation operation
was defined.
Sourcepub fn selection_set(&self) -> &SelectionSet<'fragreg>
pub fn selection_set(&self) -> &SelectionSet<'fragreg>
Access the SelectionSet defined for this Mutation.
Trait Implementations§
impl<'schema, 'fragreg> StructuralPartialEq for Mutation<'schema, 'fragreg>where
'schema: 'fragreg,
Auto Trait Implementations§
impl<'schema, 'fragreg> Freeze for Mutation<'schema, 'fragreg>
impl<'schema, 'fragreg> RefUnwindSafe for Mutation<'schema, 'fragreg>
impl<'schema, 'fragreg> Send for Mutation<'schema, 'fragreg>
impl<'schema, 'fragreg> Sync for Mutation<'schema, 'fragreg>
impl<'schema, 'fragreg> Unpin for Mutation<'schema, 'fragreg>
impl<'schema, 'fragreg> UnwindSafe for Mutation<'schema, 'fragreg>
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