[][src]Trait async_graphql::InputValueType

pub trait InputValueType: 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 InputValueType for bool[src]

impl InputValueType for char[src]

impl InputValueType for f32[src]

impl InputValueType for f64[src]

impl InputValueType for i8[src]

impl InputValueType for i16[src]

impl InputValueType for i32[src]

impl InputValueType for i64[src]

impl InputValueType for u8[src]

impl InputValueType for u16[src]

impl InputValueType for u32[src]

impl InputValueType for u64[src]

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

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

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

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

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

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

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

impl InputValueType for NonZeroI8[src]

impl InputValueType for NonZeroI16[src]

impl InputValueType for NonZeroI32[src]

impl InputValueType for NonZeroI64[src]

impl InputValueType for NonZeroU8[src]

impl InputValueType for NonZeroU16[src]

impl InputValueType for NonZeroU32[src]

impl InputValueType for NonZeroU64[src]

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

impl InputValueType for String[src]

impl InputValueType for ObjectId[src]

impl InputValueType for UtcDateTime[src]

impl InputValueType for DateTime<FixedOffset>[src]

impl InputValueType for DateTime<Local>[src]

impl InputValueType for DateTime<Utc>[src]

impl InputValueType for NaiveDate[src]

impl InputValueType for NaiveTime[src]

impl InputValueType for NaiveDateTime[src]

impl InputValueType for Url[src]

impl InputValueType for Uuid[src]

Loading content...

Implementors

impl InputValueType for Any[src]

impl InputValueType for ID[src]

impl InputValueType for Upload[src]

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

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

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

Loading content...