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)
.
Tuple Fields of Field
0: Positioned<Field>
FragmentSpread(Positioned<FragmentSpread>)
Select using a fragment.
Tuple Fields of FragmentSpread
InlineFragment(Positioned<InlineFragment>)
Select using an inline fragment.
Tuple Fields of InlineFragment
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