Trait juniper::FromInputValue[][src]

pub trait FromInputValue: Sized {
    fn from_input_value(v: &InputValue) -> Option<Self>;
}
[]

Parse an unstructured input value into a Rust data type.

The conversion can fail, and must in that case return None. Implemented automatically by the convenience macro graphql_scalar! or by deriving GraphQLEnum.

Must be implemented manually when manually exposing new enums or scalars.

Required Methods

[]

Performs the conversion.

Implementations on Foreign Types

impl<T> FromInputValue for Option<T> where
    T: FromInputValue
[src]

[]

impl<T> FromInputValue for Vec<T> where
    T: FromInputValue
[src]

[]

impl<T> FromInputValue for Box<T> where
    T: FromInputValue
[src]

[]

impl FromInputValue for String
[src]

[]

impl FromInputValue for bool
[src]

[]

impl FromInputValue for i32
[src]

[]

impl FromInputValue for f64
[src]

[]

impl FromInputValue for ()
[src]

[]

impl FromInputValue for DateTime<FixedOffset>
[src]

[]

impl FromInputValue for DateTime<Utc>
[src]

[]

impl FromInputValue for NaiveDate
[src]

[]

impl FromInputValue for NaiveDateTime
[src]

[]

impl FromInputValue for Url
[src]

[]

impl FromInputValue for Uuid
[src]

[]

Implementors