Enum async_graphql_parser::types::Selection [−][src]
pub enum Selection {
Field(Positioned<Field>),
FragmentSpread(Positioned<FragmentSpread>),
InlineFragment(Positioned<InlineFragment>),
}Expand description
A part of an object to be selected; a single field, a fragment spread or an inline fragment.
Variants
Field(Positioned<Field>)Select a single field, such as name or weightKilos: weight(unit: KILOGRAMS).
FragmentSpread(Positioned<FragmentSpread>)Select using a fragment.
InlineFragment(Positioned<InlineFragment>)Select using an inline fragment.
Implementations
Get a reference to the directives of the selection.
Get a mutable reference to the directives of the selection.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Selectionimpl UnwindSafe for SelectionBlanket Implementations
Mutably borrows from an owned value. Read more