[][src]Trait cynic::FromArguments

pub trait FromArguments<T> {
    fn from_arguments(args: &T) -> Self;
}

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 ().

Required methods

fn from_arguments(args: &T) -> Self

Loading content...

Implementors

impl<T> FromArguments<T> for T where
    T: Clone + FragmentArguments
[src]

Loading content...