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>)
Expand description
Select a single field, such as name
or weightKilos: weight(unit: KILOGRAMS)
.
FragmentSpread(Positioned<FragmentSpread>)
Expand description
Select using a fragment.
InlineFragment(Positioned<InlineFragment>)
Expand description
Select using an inline fragment.
Implementations
impl Selection
[src]
impl Selection
[src]#[must_use]pub fn directives(&self) -> &Vec<Positioned<Directive>>
[src]
#[must_use]pub fn directives(&self) -> &Vec<Positioned<Directive>>
[src]Get a reference to the directives of the selection.
#[must_use]pub fn directives_mut(&mut self) -> &mut Vec<Positioned<Directive>>
[src]
#[must_use]pub fn directives_mut(&mut self) -> &mut Vec<Positioned<Directive>>
[src]Get a mutable reference to the directives of the selection.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnwindSafe for Selection
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more