[−][src]Trait juniper::FromInputValue
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<S>) -> Option<Self> where
&'b S: ScalarRefValue<'b>,
&'b S: ScalarRefValue<'b>,
Performs the conversion.
Implementations on Foreign Types
impl<S, T> FromInputValue<S> for Option<T> where
T: FromInputValue<S>,
S: ScalarValue,
[src]
T: FromInputValue<S>,
S: ScalarValue,
fn from_input_value<'a>(v: &'a InputValue<S>) -> Option<Option<T>> where
&'b S: ScalarRefValue<'b>,
[src]
&'b S: ScalarRefValue<'b>,
impl<T, S> FromInputValue<S> for Vec<T> where
T: FromInputValue<S>,
S: ScalarValue,
[src]
T: FromInputValue<S>,
S: ScalarValue,
fn from_input_value<'a>(v: &'a InputValue<S>) -> Option<Vec<T>> where
&'b S: ScalarRefValue<'b>,
[src]
&'b S: ScalarRefValue<'b>,
impl<T, S> FromInputValue<S> for Box<T> where
S: ScalarValue,
T: FromInputValue<S>,
[src]
S: ScalarValue,
T: FromInputValue<S>,
fn from_input_value<'a>(v: &'a InputValue<S>) -> Option<Box<T>> where
&'b S: ScalarRefValue<'b>,
[src]
&'b S: ScalarRefValue<'b>,
impl<S> FromInputValue<S> for String where
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
[src]
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
fn from_input_value(v: &InputValue<S>) -> Option<String>
[src]
impl<S> FromInputValue<S> for bool where
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
[src]
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
fn from_input_value(v: &InputValue<S>) -> Option<bool>
[src]
impl<S> FromInputValue<S> for i32 where
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
[src]
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
fn from_input_value(v: &InputValue<S>) -> Option<i32>
[src]
impl<S> FromInputValue<S> for f64 where
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
[src]
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
fn from_input_value(v: &InputValue<S>) -> Option<f64>
[src]
impl<S: Debug> FromInputValue<S> for ()
[src]
fn from_input_value<'a>(_: &'a InputValue<S>) -> Option<()> where
&'b S: ScalarRefValue<'b>,
[src]
&'b S: ScalarRefValue<'b>,
impl<S> FromInputValue<S> for DateTime<FixedOffset> where
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
[src]
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
fn from_input_value(v: &InputValue<S>) -> Option<DateTime<FixedOffset>>
[src]
impl<S> FromInputValue<S> for DateTime<Utc> where
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
[src]
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
fn from_input_value(v: &InputValue<S>) -> Option<DateTime<Utc>>
[src]
impl<S> FromInputValue<S> for NaiveDate where
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
[src]
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
fn from_input_value(v: &InputValue<S>) -> Option<NaiveDate>
[src]
impl<S> FromInputValue<S> for NaiveDateTime where
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
[src]
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
fn from_input_value(v: &InputValue<S>) -> Option<NaiveDateTime>
[src]
impl<S> FromInputValue<S> for Url where
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
[src]
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
fn from_input_value(v: &InputValue<S>) -> Option<Url>
[src]
impl<S> FromInputValue<S> for Uuid where
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
[src]
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
fn from_input_value(v: &InputValue<S>) -> Option<Uuid>
[src]
Implementors
impl<S> FromInputValue<S> for ID where
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
[src]
S: ScalarValue,
&'__b S: ScalarRefValue<'__b>,
fn from_input_value(v: &InputValue<S>) -> Option<ID>
[src]
impl<__S: ScalarValue> FromInputValue<__S> for TypeKind
[src]
fn from_input_value(v: &InputValue<__S>) -> Option<TypeKind> where
&'__b __S: ScalarRefValue<'__b>,
[src]
&'__b __S: ScalarRefValue<'__b>,