[][src]Enum async_graphql_parser::types::Selection

pub enum Selection {
    Field(Positioned<Field>),
    FragmentSpread(Positioned<FragmentSpread>),
    InlineFragment(Positioned<InlineFragment>),
}

A part of an object to be selected; a single field, a fragment spread or an inline fragment.

Reference.

Variants

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

impl Selection[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]

Get a mutable reference to the directives of the selection.

Trait Implementations

impl Clone for Selection[src]

impl Debug for Selection[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.