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§
source§impl<'a, S: Debug + 'a> Debug for ConcreteLookAheadSelection<'a, S>
impl<'a, S: Debug + 'a> Debug for ConcreteLookAheadSelection<'a, S>
source§impl<'a, S> LookAheadMethods<'a, S> for ConcreteLookAheadSelection<'a, S>
impl<'a, S> LookAheadMethods<'a, S> for ConcreteLookAheadSelection<'a, S>
source§fn field_name(&self) -> &'a str
fn field_name(&self) -> &'a str
Get the (potentially aliased) name of the field represented by the current selection
source§fn 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
source§fn arguments(&self) -> &[LookAheadArgument<'_, S>]
fn arguments(&self) -> &[LookAheadArgument<'_, S>]
Get the top level arguments for the current selection
source§fn 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
source§fn has_arguments(&self) -> bool
fn has_arguments(&self) -> bool
Does the current node have any arguments?
source§fn has_children(&self) -> bool
fn has_children(&self) -> bool
Does the current node have any children?
source§impl<'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>
source§fn 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 ==
.