[][src]Trait cynic::IntoArguments

pub trait IntoArguments<T> {
    fn into_args(&self) -> T;
}

Used for converting between different argument types in a QueryFragment heirarchy.

For example if an outer QueryFragment has a struct with several parameters but an inner QueryFragment needs none then we can use () as the arguments type on the inner fragments and use the blanket implementation of IntoArguments to convert to ().

Similarly, the

Required methods

fn into_args(&self) -> T

Loading content...

Implementors

impl IntoArguments<()> for dyn FragmentArguments[src]

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

Loading content...