[−][src]Trait cynic::IntoArgument
IntoArgument is used to type-check arguments to queries in cynic.
A GraphQL argument that accepts String!
will accept any type that is
IntoArgument<String>
. Similarly, an optional String
in GraphQL will
accept any IntoArgument<Option<String>>
.
There are implementations of this for most of the built in scalars to allow
users to express arguments in a simple manner. The cynic::Enum
derive
also generates impls for converting options & refs easily.
Associated Types
type Output: SerializableArgument
Required methods
fn into_argument(self) -> Self::Output
Implementations on Foreign Types
impl IntoArgument<Option<i32>> for i32
[src]
impl<'a> IntoArgument<Option<i32>> for &'a i32
[src]
impl IntoArgument<Option<f64>> for f64
[src]
impl<'a> IntoArgument<Option<f64>> for &'a f64
[src]
impl IntoArgument<Option<String>> for String
[src]
impl<'a> IntoArgument<Option<String>> for &'a String
[src]
impl IntoArgument<Option<bool>> for bool
[src]
impl<'a> IntoArgument<Option<bool>> for &'a bool
[src]
impl<'a> IntoArgument<Option<i32>> for Option<&'a i32>
[src]
impl<'a> IntoArgument<Option<i32>> for &'a Option<i32>
[src]
impl<'a> IntoArgument<Option<f64>> for Option<&'a f64>
[src]
impl<'a> IntoArgument<Option<f64>> for &'a Option<f64>
[src]
impl<'a> IntoArgument<Option<String>> for Option<&'a String>
[src]
impl<'a> IntoArgument<Option<String>> for &'a Option<String>
[src]
impl<'a> IntoArgument<Option<bool>> for Option<&'a bool>
[src]
impl<'a> IntoArgument<Option<bool>> for &'a Option<bool>
[src]
impl<'a> IntoArgument<Option<Id>> for Option<&'a Id>
[src]
impl<'a> IntoArgument<Option<Id>> for &'a Option<Id>
[src]
impl<'a> IntoArgument<String> for &'a str
[src]
type Output = &'a str
fn into_argument(self) -> &'a str
[src]
impl<'a> IntoArgument<Option<String>> for &'a str
[src]
impl<'a> IntoArgument<Option<String>> for Option<&'a str>
[src]
Loading content...Implementors
impl IntoArgument<Option<Id>> for Id
[src]
impl<'a> IntoArgument<Option<Id>> for &'a Id
[src]
impl<T> IntoArgument<T> for T where
T: SerializableArgument,
[src]
T: SerializableArgument,