Trait cynic::FromArguments [−][src]
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 FromArguments to convert to ().
Required methods
fn from_arguments(args: T) -> Self
[src]
Implementations on Foreign Types
impl<'a, T> FromArguments<&'a T> for &'a T where
T: FragmentArguments,
[src]
impl<'a, T> FromArguments<&'a T> for &'a T where
T: FragmentArguments,
[src]