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

Trait Implementations

impl<'a> Clone for Selection<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> PartialEq for Selection<'a>
[src]

[src]

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

[src]

This method tests for !=.

impl<'a> Debug for Selection<'a>
[src]

[src]

Formats the value using the given formatter.