[][src]Trait cynic::FromArguments

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

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

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

Implementations on Foreign Types

impl<'a, T> FromArguments<&'a T> for &'a T where
    T: FragmentArguments
[src]

Loading content...

Implementors

Loading content...