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

Trait Implementations

impl Clone for Selection
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Selection
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Selection
[src]

Formats the value using the given formatter.