Trait juniper::LookAheadMethods [−][src]
pub trait LookAheadMethods { fn field_name(&self) -> &str; fn select_child(&self, name: &str) -> Option<&Self>; fn arguments(&self) -> &[LookAheadArgument]; fn has_child(&self, name: &str) -> bool { ... } fn argument(&self, name: &str) -> Option<&LookAheadArgument> { ... } }
A set of common methods for ConcreteLookAheadSelection
and LookAheadSelection
Required Methods
fn field_name(&self) -> &str
Get the name of the field represented by the current selection
fn select_child(&self, name: &str) -> Option<&Self>
Get the the child selection for a given field
fn arguments(&self) -> &[LookAheadArgument]
Get the top level arguments for the current selection
Provided Methods
fn has_child(&self, name: &str) -> bool
Check if a given field exists
fn argument(&self, name: &str) -> Option<&LookAheadArgument>
Get the top level argument with a given name from the current selection
Implementors
impl<'a> LookAheadMethods for LookAheadSelection<'a>