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]
fn clone(&self) -> Selection<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> PartialEq for Selection<'a>
[src]
fn eq(&self, __arg_0: &Selection<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Selection<'a>) -> bool
This method tests for !=
.