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§
impl<'a, S> StructuralPartialEq for Selection<'a, S>
Auto Trait Implementations§
impl<'a, S> Freeze for Selection<'a, S>
impl<'a, S> RefUnwindSafe for Selection<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for Selection<'a, S>where
S: Send,
impl<'a, S> Sync for Selection<'a, S>where
S: Sync,
impl<'a, S> Unpin for Selection<'a, S>where
S: Unpin,
impl<'a, S> UnwindSafe for Selection<'a, S>where
S: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more