Enum juniper::Selection
[−]
[src]
pub enum Selection { Field(Spanning<Field>), FragmentSpread(Spanning<FragmentSpread>), InlineFragment(Spanning<InlineFragment>), }
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>)
FragmentSpread(Spanning<FragmentSpread>)
InlineFragment(Spanning<InlineFragment>)
Trait Implementations
impl Clone for Selection
[src]
fn clone(&self) -> Selection
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 PartialEq for Selection
[src]
fn eq(&self, __arg_0: &Selection) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Selection) -> bool
This method tests for !=
.