Trait cynic::FromArguments[][src]

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

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

Converts a T into Self

Implementations on Foreign Types

Implementors