Struct juniper::LookAheadSelection
source · pub struct LookAheadSelection<'a, S: 'a> { /* private fields */ }
Expand description
A selection performed by a query
Implementations
sourceimpl<'a, S> LookAheadSelection<'a, S>where
S: ScalarValue,
&'a S: ScalarRefValue<'a>,
impl<'a, S> LookAheadSelection<'a, S>where
S: ScalarValue,
&'a S: ScalarRefValue<'a>,
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
sourceimpl<'a, S: Clone + 'a> Clone for LookAheadSelection<'a, S>
impl<'a, S: Clone + 'a> Clone for LookAheadSelection<'a, S>
sourcefn clone(&self) -> LookAheadSelection<'a, S>
fn clone(&self) -> LookAheadSelection<'a, S>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'a, S: Debug + 'a> Debug for LookAheadSelection<'a, S>
impl<'a, S: Debug + 'a> Debug for LookAheadSelection<'a, S>
sourceimpl<'a, S> LookAheadMethods<S> for LookAheadSelection<'a, S>
impl<'a, S> LookAheadMethods<S> for LookAheadSelection<'a, S>
sourcefn field_name(&self) -> &str
fn field_name(&self) -> &str
Get the 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
sourcefn arguments(&self) -> &[LookAheadArgument<'_, S>]
fn arguments(&self) -> &[LookAheadArgument<'_, S>]
Get the top level arguments for the current selection
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<LookAheadSelection<'a, S>> for LookAheadSelection<'a, S>
impl<'a, S: PartialEq + 'a> PartialEq<LookAheadSelection<'a, S>> for LookAheadSelection<'a, S>
sourcefn eq(&self, other: &LookAheadSelection<'a, S>) -> bool
fn eq(&self, other: &LookAheadSelection<'a, S>) -> bool
impl<'a, S: 'a> StructuralPartialEq for LookAheadSelection<'a, S>
Auto Trait Implementations
impl<'a, S> RefUnwindSafe for LookAheadSelection<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for LookAheadSelection<'a, S>where
S: Sync,
impl<'a, S> Sync for LookAheadSelection<'a, S>where
S: Sync,
impl<'a, S> Unpin for LookAheadSelection<'a, S>
impl<'a, S> UnwindSafe for LookAheadSelection<'a, S>where
S: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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