pub enum GraphQLOperation<'schema, 'fragreg> {
Query(Box<Query<'schema, 'fragreg>>),
Mutation(Box<Mutation<'schema, 'fragreg>>),
Subscription(Box<Subscription<'schema, 'fragreg>>),
}Variants§
Query(Box<Query<'schema, 'fragreg>>)
Mutation(Box<Mutation<'schema, 'fragreg>>)
Subscription(Box<Subscription<'schema, 'fragreg>>)
Implementations§
Source§impl<'schema, 'fragreg> GraphQLOperation<'schema, 'fragreg>
impl<'schema, 'fragreg> GraphQLOperation<'schema, 'fragreg>
pub fn as_query(&self) -> Option<&Query<'schema, 'fragreg>>
pub fn as_mutation(&self) -> Option<&Mutation<'schema, 'fragreg>>
pub fn as_subscription(&self) -> Option<&Subscription<'schema, 'fragreg>>
pub fn def_location(&self) -> &SourceLocation
pub fn name(&self) -> Option<&str>
Trait Implementations§
Source§impl<'schema, 'fragreg> Debug for GraphQLOperation<'schema, 'fragreg>
impl<'schema, 'fragreg> Debug for GraphQLOperation<'schema, 'fragreg>
Source§impl<'schema, 'fragreg> PartialEq for GraphQLOperation<'schema, 'fragreg>
impl<'schema, 'fragreg> PartialEq for GraphQLOperation<'schema, 'fragreg>
Source§fn eq(&self, other: &GraphQLOperation<'schema, 'fragreg>) -> bool
fn eq(&self, other: &GraphQLOperation<'schema, 'fragreg>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'schema, 'fragreg> StructuralPartialEq for GraphQLOperation<'schema, 'fragreg>
Auto Trait Implementations§
impl<'schema, 'fragreg> Freeze for GraphQLOperation<'schema, 'fragreg>
impl<'schema, 'fragreg> RefUnwindSafe for GraphQLOperation<'schema, 'fragreg>
impl<'schema, 'fragreg> Send for GraphQLOperation<'schema, 'fragreg>
impl<'schema, 'fragreg> Sync for GraphQLOperation<'schema, 'fragreg>
impl<'schema, 'fragreg> Unpin for GraphQLOperation<'schema, 'fragreg>
impl<'schema, 'fragreg> UnwindSafe for GraphQLOperation<'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