Struct juniper::executor::ConcreteLookAheadSelection
source · [−]pub struct ConcreteLookAheadSelection<'a, S: 'a> { /* private fields */ }
Expand description
A selection performed by a query on a concrete type
Trait Implementations
sourceimpl<'a, S: Debug + 'a> Debug for ConcreteLookAheadSelection<'a, S>
impl<'a, S: Debug + 'a> Debug for ConcreteLookAheadSelection<'a, S>
sourceimpl<'a, S> LookAheadMethods<'a, S> for ConcreteLookAheadSelection<'a, S>
impl<'a, S> LookAheadMethods<'a, S> for ConcreteLookAheadSelection<'a, S>
sourcefn field_name(&self) -> &'a str
fn field_name(&self) -> &'a str
Get the (potentially aliased) name of the field represented by the current selection
sourcefn select_child(&self, name: &str) -> Option<&Self>
fn select_child(&self, name: &str) -> Option<&Self>
Get the the child selection for a given field
If a child has an alias, it will only match if the alias matches name
Read more
sourcefn arguments(&self) -> &[LookAheadArgument<'_, S>]
fn arguments(&self) -> &[LookAheadArgument<'_, S>]
Get the top level arguments for the current selection
sourcefn child_names(&self) -> Vec<&'a str>
fn child_names(&self) -> Vec<&'a str>
Get the (possibly aliased) names of the top level children for the current selection
sourcefn has_arguments(&self) -> bool
fn has_arguments(&self) -> bool
Does the current node have any arguments?
sourcefn has_children(&self) -> bool
fn has_children(&self) -> bool
Does the current node have any children?
sourcefn has_child(&self, name: &str) -> bool
fn has_child(&self, name: &str) -> bool
Check if a given child selection with a name exists
If a child has an alias, it will only match if the alias matches name
Read more
sourcefn argument(&self, name: &str) -> Option<&LookAheadArgument<'_, S>>
fn argument(&self, name: &str) -> Option<&LookAheadArgument<'_, S>>
Get the top level argument with a given name from the current selection
sourceimpl<'a, S: PartialEq + 'a> PartialEq<ConcreteLookAheadSelection<'a, S>> for ConcreteLookAheadSelection<'a, S>
impl<'a, S: PartialEq + 'a> PartialEq<ConcreteLookAheadSelection<'a, S>> for ConcreteLookAheadSelection<'a, S>
sourcefn eq(&self, other: &ConcreteLookAheadSelection<'a, S>) -> bool
fn eq(&self, other: &ConcreteLookAheadSelection<'a, S>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ConcreteLookAheadSelection<'a, S>) -> bool
fn ne(&self, other: &ConcreteLookAheadSelection<'a, S>) -> bool
This method tests for !=
.
impl<'a, S: 'a> StructuralPartialEq for ConcreteLookAheadSelection<'a, S>
Auto Trait Implementations
impl<'a, S> RefUnwindSafe for ConcreteLookAheadSelection<'a, S> where
S: RefUnwindSafe,
impl<'a, S> Send for ConcreteLookAheadSelection<'a, S> where
S: Sync,
impl<'a, S> Sync for ConcreteLookAheadSelection<'a, S> where
S: Sync,
impl<'a, S> Unpin for ConcreteLookAheadSelection<'a, S>
impl<'a, S> UnwindSafe for ConcreteLookAheadSelection<'a, S> where
S: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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