pub enum Selection<'a, S = DefaultScalarValue> {
Field(Spanning<Field<'a, S>>),
FragmentSpread(Spanning<FragmentSpread<'a, S>>),
InlineFragment(Spanning<InlineFragment<'a, S>>),
}
Expand description
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, S>>)
FragmentSpread(Spanning<FragmentSpread<'a, S>>)
InlineFragment(Spanning<InlineFragment<'a, S>>)
Trait Implementations
Auto Trait Implementations
impl<'a, S> RefUnwindSafe for Selection<'a, S> where
S: RefUnwindSafe,
impl<'a, S> UnwindSafe for Selection<'a, S> where
S: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more