Struct cynic::FragmentContext[][src]

pub struct FragmentContext<'a, Args> {
    pub args: &'a Args,
    pub recurse_depth: Option<u8>,
}

Context passed into a QueryFragment/InlineFragments

This contains the arguments to be used by the fragment and other metadata neccesary for building the fragment.

Should be built with the new function to pass in arguments or the empty function if there are no arguments.

Fields

args: &'a Argsrecurse_depth: Option<u8>

Implementations

impl<'a, Args> FragmentContext<'a, Args>[src]

pub fn new(args: &'a Args) -> FragmentContext<'a, Args>[src]

Constructs a new FragmentContext with some arguments.

The empty function can be used instead if there are no arguments.

impl FragmentContext<'static, ()>[src]

pub fn empty() -> FragmentContext<'static, ()>[src]

Constructs a new FragmentContext with no arguments

Trait Implementations

impl<'a, Args> Clone for FragmentContext<'a, Args>[src]

Auto Trait Implementations

impl<'a, Args> RefUnwindSafe for FragmentContext<'a, Args> where
    Args: RefUnwindSafe

impl<'a, Args> Send for FragmentContext<'a, Args> where
    Args: Sync

impl<'a, Args> Sync for FragmentContext<'a, Args> where
    Args: Sync

impl<'a, Args> Unpin for FragmentContext<'a, Args>

impl<'a, Args> UnwindSafe for FragmentContext<'a, Args> where
    Args: RefUnwindSafe

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, U> FlattenInto<U> for T where
    U: FlattenFrom<T>, 
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,