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
fn from_input_value(v: &InputValue) -> Option<Self>
Performs the conversion.
Implementations on Foreign Types
impl<T> FromInputValue for Option<T> where
T: FromInputValue, [src]
impl<T> FromInputValue for Option<T> where
T: FromInputValue, fn from_input_value(v: &InputValue) -> Option<Option<T>>[src]
fn from_input_value(v: &InputValue) -> Option<Option<T>>impl<T> FromInputValue for Vec<T> where
T: FromInputValue, [src]
impl<T> FromInputValue for Vec<T> where
T: FromInputValue, fn from_input_value(v: &InputValue) -> Option<Vec<T>>[src]
fn from_input_value(v: &InputValue) -> Option<Vec<T>>impl<T> FromInputValue for Box<T> where
T: FromInputValue, [src]
impl<T> FromInputValue for Box<T> where
T: FromInputValue, fn from_input_value(v: &InputValue) -> Option<Box<T>>[src]
fn from_input_value(v: &InputValue) -> Option<Box<T>>impl FromInputValue for String[src]
impl FromInputValue for Stringfn from_input_value(v: &InputValue) -> Option<String>[src]
fn from_input_value(v: &InputValue) -> Option<String>impl FromInputValue for bool[src]
impl FromInputValue for boolfn from_input_value(v: &InputValue) -> Option<bool>[src]
fn from_input_value(v: &InputValue) -> Option<bool>impl FromInputValue for i32[src]
impl FromInputValue for i32fn from_input_value(v: &InputValue) -> Option<i32>[src]
fn from_input_value(v: &InputValue) -> Option<i32>impl FromInputValue for f64[src]
impl FromInputValue for f64fn from_input_value(v: &InputValue) -> Option<f64>[src]
fn from_input_value(v: &InputValue) -> Option<f64>impl FromInputValue for ()[src]
impl FromInputValue for ()fn from_input_value(_: &InputValue) -> Option<()>[src]
fn from_input_value(_: &InputValue) -> Option<()>impl FromInputValue for DateTime<FixedOffset>[src]
impl FromInputValue for DateTime<FixedOffset>fn from_input_value(v: &InputValue) -> Option<DateTime<FixedOffset>>[src]
fn from_input_value(v: &InputValue) -> Option<DateTime<FixedOffset>>impl FromInputValue for DateTime<Utc>[src]
impl FromInputValue for DateTime<Utc>fn from_input_value(v: &InputValue) -> Option<DateTime<Utc>>[src]
fn from_input_value(v: &InputValue) -> Option<DateTime<Utc>>impl FromInputValue for NaiveDate[src]
impl FromInputValue for NaiveDatefn from_input_value(v: &InputValue) -> Option<NaiveDate>[src]
fn from_input_value(v: &InputValue) -> Option<NaiveDate>impl FromInputValue for NaiveDateTime[src]
impl FromInputValue for NaiveDateTimefn from_input_value(v: &InputValue) -> Option<NaiveDateTime>[src]
fn from_input_value(v: &InputValue) -> Option<NaiveDateTime>impl FromInputValue for Url[src]
impl FromInputValue for Urlfn from_input_value(v: &InputValue) -> Option<Url>[src]
fn from_input_value(v: &InputValue) -> Option<Url>impl FromInputValue for Uuid[src]
impl FromInputValue for Uuidfn from_input_value(v: &InputValue) -> Option<Uuid>[src]
fn from_input_value(v: &InputValue) -> Option<Uuid>Implementors
impl FromInputValue for ID