pub struct Subscription<'schema, 'fragreg>(/* private fields */)
where
    'schema: 'fragreg;Implementations§
Source§impl<'schema, 'fragreg> Subscription<'schema, 'fragreg>where
    'schema: 'fragreg,
 
impl<'schema, 'fragreg> Subscription<'schema, 'fragreg>where
    'schema: 'fragreg,
Sourcepub fn builder(
    schema: &'schema Schema,
    fragment_registry: &'fragreg FragmentRegistry<'schema>,
) -> SubscriptionBuilder<'schema, 'fragreg>
 
pub fn builder( schema: &'schema Schema, fragment_registry: &'fragreg FragmentRegistry<'schema>, ) -> SubscriptionBuilder<'schema, 'fragreg>
Convenience wrapper around SubscriptionBuilder::new().
Sourcepub fn directives(&self) -> &Vec<DirectiveAnnotation>
 
pub fn directives(&self) -> &Vec<DirectiveAnnotation>
The list of DirectiveAnnotations applied to this Subscription.
Sourcepub fn def_location(&self) -> &SourceLocation
 
pub fn def_location(&self) -> &SourceLocation
The loc::SourceLocation indicating where this Subscription
operation was defined.
Sourcepub fn name(&self) -> Option<&str>
 
pub fn name(&self) -> Option<&str>
Access the name of this Subscription (if one was specified).
Sourcepub fn selection_set(&self) -> &SelectionSet<'fragreg>
 
pub fn selection_set(&self) -> &SelectionSet<'fragreg>
Access the SelectionSet defined for this Subscription.
Trait Implementations§
Source§impl<'schema, 'fragreg> Clone for Subscription<'schema, 'fragreg>where
    'schema: 'fragreg,
 
impl<'schema, 'fragreg> Clone for Subscription<'schema, 'fragreg>where
    'schema: 'fragreg,
Source§fn clone(&self) -> Subscription<'schema, 'fragreg>
 
fn clone(&self) -> Subscription<'schema, 'fragreg>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl<'schema, 'fragreg> Debug for Subscription<'schema, 'fragreg>where
    'schema: 'fragreg,
 
impl<'schema, 'fragreg> Debug for Subscription<'schema, 'fragreg>where
    'schema: 'fragreg,
Source§impl<'schema, 'fragreg> PartialEq for Subscription<'schema, 'fragreg>where
    'schema: 'fragreg,
 
impl<'schema, 'fragreg> PartialEq for Subscription<'schema, 'fragreg>where
    'schema: 'fragreg,
Source§fn eq(&self, other: &Subscription<'schema, 'fragreg>) -> bool
 
fn eq(&self, other: &Subscription<'schema, 'fragreg>) -> bool
Tests for 
self and other values to be equal, and is used by ==.impl<'schema, 'fragreg> StructuralPartialEq for Subscription<'schema, 'fragreg>where
    'schema: 'fragreg,
Auto Trait Implementations§
impl<'schema, 'fragreg> Freeze for Subscription<'schema, 'fragreg>
impl<'schema, 'fragreg> RefUnwindSafe for Subscription<'schema, 'fragreg>
impl<'schema, 'fragreg> Send for Subscription<'schema, 'fragreg>
impl<'schema, 'fragreg> Sync for Subscription<'schema, 'fragreg>
impl<'schema, 'fragreg> Unpin for Subscription<'schema, 'fragreg>
impl<'schema, 'fragreg> UnwindSafe for Subscription<'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