Trait juniper::LookAheadMethods
source · pub trait LookAheadMethods<S> {
fn field_name(&self) -> &str;
fn select_child(&self, name: &str) -> Option<&Self>;
fn arguments(&self) -> &[LookAheadArgument<'_, S>];
fn has_child(&self, name: &str) -> bool { ... }
fn argument(&self, name: &str) -> Option<&LookAheadArgument<'_, S>> { ... }
}
Expand description
A set of common methods for ConcreteLookAheadSelection
and LookAheadSelection
Required Methods
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
Provided Methods
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