Struct cynic::FragmentContext [−][src]
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 Args
recurse_depth: Option<u8>
Implementations
impl<'a, Args> FragmentContext<'a, Args>
[src]
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]
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]
impl<'a, Args> Clone for FragmentContext<'a, Args>
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<'a, Args> RefUnwindSafe for FragmentContext<'a, Args> where
Args: RefUnwindSafe,
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> Send for FragmentContext<'a, Args> where
Args: Sync,
impl<'a, Args> Sync 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> Unpin for FragmentContext<'a, Args>
impl<'a, Args> UnwindSafe for FragmentContext<'a, Args> where
Args: RefUnwindSafe,
impl<'a, Args> UnwindSafe for FragmentContext<'a, Args> where
Args: RefUnwindSafe,
Blanket Implementations
impl<T, U> FlattenInto<U> for T where
U: FlattenFrom<T>,
[src]
impl<T, U> FlattenInto<U> for T where
U: FlattenFrom<T>,
[src]pub fn flatten_into(Self) -> U
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,