Enum juniper::Selection [−][src]
pub enum Selection<'a> {
Field(Spanning<Field<'a>>),
FragmentSpread(Spanning<FragmentSpread<'a>>),
InlineFragment(Spanning<InlineFragment<'a>>),
}Entry in a GraphQL selection set
This enum represents one of the three variants of a selection that exists in GraphQL: a field, a fragment spread, or an inline fragment. Each of the variants references their location in the query source.
{
field(withArg: 123) { subField }
...fragmentSpread
...on User {
inlineFragmentField
}
}
Variants
Field(Spanning<Field<'a>>)FragmentSpread(Spanning<FragmentSpread<'a>>)InlineFragment(Spanning<InlineFragment<'a>>)Trait Implementations
impl<'a> Clone for Selection<'a>[src]
impl<'a> Clone for Selection<'a>fn clone(&self) -> Selection<'a>[src]
fn clone(&self) -> Selection<'a>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<'a> PartialEq for Selection<'a>[src]
impl<'a> PartialEq for Selection<'a>fn eq(&self, other: &Selection<'a>) -> bool[src]
fn eq(&self, other: &Selection<'a>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Selection<'a>) -> bool[src]
fn ne(&self, other: &Selection<'a>) -> boolThis method tests for !=.
impl<'a> Debug for Selection<'a>[src]
impl<'a> Debug for Selection<'a>