[][src]Trait async_graphql::InputType

pub trait InputType: Type + Sized {
    pub fn parse(value: Option<Value>) -> InputValueResult<Self>;
pub fn to_value(&self) -> Value; }

Represents a GraphQL input value.

Required methods

pub fn parse(value: Option<Value>) -> InputValueResult<Self>[src]

Parse from Value. None represents undefined.

pub fn to_value(&self) -> Value[src]

Convert to a Value for introspection.

Loading content...

Implementations on Foreign Types

impl<T: InputType + Send + Sync> InputType for Box<T>[src]

impl<T: InputType + Send + Sync> InputType for Arc<T>[src]

impl InputType for bool[src]

impl InputType for char[src]

impl InputType for f32[src]

impl InputType for f64[src]

impl InputType for i8[src]

impl InputType for i16[src]

impl InputType for i32[src]

impl InputType for i64[src]

impl InputType for u8[src]

impl InputType for u16[src]

impl InputType for u32[src]

impl InputType for u64[src]

impl InputType for usize[src]

impl InputType for isize[src]

impl<T> InputType for BTreeMap<String, T> where
    T: OutputType + InputType + Send + Sync
[src]

impl<T> InputType for HashMap<String, T> where
    T: OutputType + InputType + Send + Sync
[src]

impl<T: InputType + Ord> InputType for BTreeSet<T>[src]

impl<T: InputType + Hash + Eq> InputType for HashSet<T>[src]

impl<T: InputType> InputType for LinkedList<T>[src]

impl<T: InputType> InputType for Vec<T>[src]

impl<T: InputType> InputType for VecDeque<T>[src]

impl InputType for NonZeroI8[src]

impl InputType for NonZeroI16[src]

impl InputType for NonZeroI32[src]

impl InputType for NonZeroI64[src]

impl InputType for NonZeroU8[src]

impl InputType for NonZeroU16[src]

impl InputType for NonZeroU32[src]

impl InputType for NonZeroU64[src]

impl<T: InputType> InputType for Option<T>[src]

impl InputType for String[src]

impl InputType for ObjectId[src]

impl InputType for UtcDateTime[src]

impl InputType for DateTime<FixedOffset>[src]

impl InputType for DateTime<Local>[src]

impl InputType for DateTime<Utc>[src]

impl InputType for NaiveDate[src]

impl InputType for NaiveTime[src]

impl InputType for NaiveDateTime[src]

impl InputType for Url[src]

impl InputType for Uuid[src]

Loading content...

Implementors

impl InputType for Any[src]

impl InputType for ID[src]

impl InputType for Upload[src]

impl<T: InputType> InputType for MaybeUndefined<T>[src]

impl<T: Num + Display + Send + Sync> InputType for StringNumber<T> where
    <T as Num>::FromStrRadixErr: Display
[src]

impl<T: DeserializeOwned + Serialize + Send + Sync> InputType for Json<T>[src]

Loading content...