Trait async_graphql::InputType [−][src]
pub trait InputType: Type + Send + Sync + Sized { fn parse(value: Option<Value>) -> InputValueResult<Self>; fn to_value(&self) -> Value; }
Expand description
Represents a GraphQL input value.
Required methods
fn parse(value: Option<Value>) -> InputValueResult<Self>[src]
Expand description
Parse from Value. None represents undefined.
fn to_value(&self) -> Value[src]
Expand description
Convert to a Value for introspection.
Implementations on Foreign Types
impl<T: InputType> InputType for Box<T>[src]
impl<T: InputType> InputType for Box<T>[src]fn parse(value: Option<ConstValue>) -> InputValueResult<Self>[src]
fn to_value(&self) -> ConstValue[src]
impl<T: InputType> InputType for Arc<T>[src]
impl<T: InputType> InputType for Arc<T>[src]fn parse(value: Option<ConstValue>) -> InputValueResult<Self>[src]
fn to_value(&self) -> ConstValue[src]
impl<T: InputType> InputType for LinkedList<T>[src]
impl<T: InputType> InputType for LinkedList<T>[src]impl InputType for NonZeroI16[src]
impl InputType for NonZeroI16[src]impl InputType for NonZeroI32[src]
impl InputType for NonZeroI32[src]impl InputType for NonZeroI64[src]
impl InputType for NonZeroI64[src]impl InputType for NonZeroU16[src]
impl InputType for NonZeroU16[src]impl InputType for NonZeroU32[src]
impl InputType for NonZeroU32[src]impl InputType for NonZeroU64[src]
impl InputType for NonZeroU64[src]impl InputType for UtcDateTime[src]
impl InputType for UtcDateTime[src]impl InputType for DateTime<FixedOffset>[src]
impl InputType for DateTime<FixedOffset>[src]impl InputType for NaiveDateTime[src]
impl InputType for NaiveDateTime[src]Implementors
impl<T: Num + Display + Send + Sync> InputType for StringNumber<T> where
<T as Num>::FromStrRadixErr: Display, [src]
impl<T: Num + Display + Send + Sync> InputType for StringNumber<T> where
<T as Num>::FromStrRadixErr: Display, [src]