Struct juniper::executor::LookAheadSelection
source · pub struct LookAheadSelection<'a, S: 'a> { /* private fields */ }
Expand description
A selection performed by a query
Implementations§
source§impl<'a, S> LookAheadSelection<'a, S>where
S: ScalarValue,
impl<'a, S> LookAheadSelection<'a, S>where
S: ScalarValue,
sourcepub fn for_explicit_type(
&self,
type_name: &str
) -> ConcreteLookAheadSelection<'a, S>
pub fn for_explicit_type(
&self,
type_name: &str
) -> ConcreteLookAheadSelection<'a, S>
Convert a eventually type independent selection into one for a concrete type
Trait Implementations§
source§impl<'a, S: Clone + 'a> Clone for LookAheadSelection<'a, S>
impl<'a, S: Clone + 'a> Clone for LookAheadSelection<'a, S>
source§fn clone(&self) -> LookAheadSelection<'a, S>
fn clone(&self) -> LookAheadSelection<'a, S>
Returns a copy 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<'a, S: Debug + 'a> Debug for LookAheadSelection<'a, S>
impl<'a, S: Debug + 'a> Debug for LookAheadSelection<'a, S>
source§impl<'a, S> Default for LookAheadSelection<'a, S>where
S: ScalarValue,
impl<'a, S> Default for LookAheadSelection<'a, S>where
S: ScalarValue,
source§impl<'a, S> LookAheadMethods<'a, S> for LookAheadSelection<'a, S>
impl<'a, S> LookAheadMethods<'a, S> for LookAheadSelection<'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<LookAheadSelection<'a, S>> for LookAheadSelection<'a, S>
impl<'a, S: PartialEq + 'a> PartialEq<LookAheadSelection<'a, S>> for LookAheadSelection<'a, S>
source§fn eq(&self, other: &LookAheadSelection<'a, S>) -> bool
fn eq(&self, other: &LookAheadSelection<'a, S>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.