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>)
Tuple Fields
0: Positioned<Field>
Select a single field, such as name
or weightKilos: weight(unit: KILOGRAMS)
.
FragmentSpread(Positioned<FragmentSpread>)
Tuple Fields
Select using a fragment.
InlineFragment(Positioned<InlineFragment>)
Tuple Fields
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 Selection
impl UnwindSafe for Selection
Blanket Implementations
Mutably borrows from an owned value. Read more