Trait cynic::inputs::InputType [−][src]
pub trait InputType<NamedType, Wrappers>: Serialize { }
Expand description
A trait for accepting input types. This is used to determine whether a type is compatible with the expected input type when provided as an argument: either directly as an field argument or inside an InputObject.
This trait has two type parameters:
NamedType
should point to the marker trait of the underlying type in yourschema
module.Wrappers
is used to specify the “wrapper types”, for example if it is nullable or in a list.
Implementations on Foreign Types
impl<T: ?Sized, TypeLock, Wrappers> InputType<TypeLock, Wrappers> for &T where
T: InputType<TypeLock, Wrappers>,
[src]impl<T: ?Sized, TypeLock, Wrappers> InputType<TypeLock, Wrappers> for Box<T> where
T: InputType<TypeLock, Wrappers>,
[src]impl<T: ?Sized, TypeLock, Wrappers> InputType<TypeLock, Wrappers> for Rc<T> where
T: InputType<TypeLock, Wrappers>,
Rc<T>: Serialize,
[src]impl<T: ?Sized, TypeLock, Wrappers> InputType<TypeLock, Wrappers> for Arc<T> where
T: InputType<TypeLock, Wrappers>,
Arc<T>: Serialize,
[src]