[−][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 proc macro graphql_scalar
or by deriving GraphQLEnum.
Must be implemented manually when manually exposing new enums or scalars.
Required methods
pub fn from_input_value(v: &InputValue<S>) -> Option<Self>
[src]
Performs the conversion.
Provided methods
pub fn from_implicit_null() -> Self
[src]
Performs the conversion from an absent value (e.g. to distinguish between implicit and
explicit null). The default implementation just uses from_input_value
as if an explicit
null were provided. This conversion must not fail.
Implementations on Foreign Types
impl<S, T> FromInputValue<S> for Option<T> where
T: FromInputValue<S>,
S: ScalarValue,
[src]
T: FromInputValue<S>,
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<Option<T>>
[src]
impl<T, S> FromInputValue<S> for Vec<T> where
T: FromInputValue<S>,
S: ScalarValue,
[src]
T: FromInputValue<S>,
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<Vec<T>>
[src]
impl<T, S> FromInputValue<S> for Box<T> where
S: ScalarValue,
T: FromInputValue<S>,
[src]
S: ScalarValue,
T: FromInputValue<S>,
pub fn from_input_value(v: &InputValue<S>) -> Option<Box<T>>
[src]
impl<T, S> FromInputValue<S> for Arc<T> where
S: ScalarValue,
T: FromInputValue<S>,
[src]
S: ScalarValue,
T: FromInputValue<S>,
pub fn from_input_value(v: &InputValue<S>) -> Option<Arc<T>>
[src]
impl<S> FromInputValue<S> for String where
S: ScalarValue,
[src]
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<String>
[src]
impl<S> FromInputValue<S> for bool where
S: ScalarValue,
[src]
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<bool>
[src]
impl<S> FromInputValue<S> for i32 where
S: ScalarValue,
[src]
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<i32>
[src]
impl<S> FromInputValue<S> for f64 where
S: ScalarValue,
[src]
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<f64>
[src]
impl<S> FromInputValue<S> for DateTime<FixedOffset> where
S: ScalarValue,
[src]
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<DateTime<FixedOffset>>
[src]
impl<S> FromInputValue<S> for DateTime<Utc> where
S: ScalarValue,
[src]
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<DateTime<Utc>>
[src]
impl<S> FromInputValue<S> for NaiveDate where
S: ScalarValue,
[src]
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<NaiveDate>
[src]
impl<S> FromInputValue<S> for NaiveDateTime where
S: ScalarValue,
[src]
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<NaiveDateTime>
[src]
impl<S> FromInputValue<S> for Url where
S: ScalarValue,
[src]
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<Url>
[src]
impl<S> FromInputValue<S> for Uuid where
S: ScalarValue,
[src]
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<Uuid>
[src]
impl<S> FromInputValue<S> for ObjectId where
S: ScalarValue,
[src]
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<ObjectId>
[src]
impl<S> FromInputValue<S> for UtcDateTime where
S: ScalarValue,
[src]
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<UtcDateTime>
[src]
Implementors
impl<S> FromInputValue<S> for ID where
S: ScalarValue,
[src]
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<ID>
[src]
impl<S, T> FromInputValue<S> for Nullable<T> where
T: FromInputValue<S>,
S: ScalarValue,
[src]
T: FromInputValue<S>,
S: ScalarValue,
pub fn from_input_value(v: &InputValue<S>) -> Option<Nullable<T>>
[src]
pub fn from_implicit_null() -> Self
[src]
impl<__S> FromInputValue<__S> for TypeKind where
__S: ScalarValue,
[src]
__S: ScalarValue,