[][src]Trait juniper::ToInputValue

pub trait ToInputValue<S = DefaultScalarValue>: Sized {
    fn to_input_value(&self) -> InputValue<S>;
}

Losslessly clones a Rust data type into an InputValue.

Required methods

fn to_input_value(&self) -> InputValue<S>

Performs the conversion.

Loading content...

Implementations on Foreign Types

impl<S, T> ToInputValue<S> for Option<T> where
    T: ToInputValue<S>,
    S: ScalarValue
[src]

impl<T, S> ToInputValue<S> for Vec<T> where
    T: ToInputValue<S>,
    S: ScalarValue
[src]

impl<'a, T, S> ToInputValue<S> for &'a [T] where
    T: ToInputValue<S>,
    S: ScalarValue
[src]

impl<T, S> ToInputValue<S> for Box<T> where
    S: Debug,
    T: ToInputValue<S>, 
[src]

impl<'a, T, S> ToInputValue<S> for &'a T where
    S: Debug,
    T: ToInputValue<S>, 
[src]

impl<T, S> ToInputValue<S> for Arc<T> where
    S: Debug,
    T: ToInputValue<S>, 
[src]

impl<S> ToInputValue<S> for String where
    S: ScalarValue,
    &'__b S: ScalarRefValue<'__b>, 
[src]

impl<'a, S> ToInputValue<S> for &'a str where
    S: ScalarValue
[src]

impl<S> ToInputValue<S> for bool where
    S: ScalarValue,
    &'__b S: ScalarRefValue<'__b>, 
[src]

impl<S> ToInputValue<S> for i32 where
    S: ScalarValue,
    &'__b S: ScalarRefValue<'__b>, 
[src]

impl<S> ToInputValue<S> for f64 where
    S: ScalarValue,
    &'__b S: ScalarRefValue<'__b>, 
[src]

impl<S> ToInputValue<S> for DateTime<FixedOffset> where
    S: ScalarValue,
    &'__b S: ScalarRefValue<'__b>, 
[src]

impl<S> ToInputValue<S> for DateTime<Utc> where
    S: ScalarValue,
    &'__b S: ScalarRefValue<'__b>, 
[src]

impl<S> ToInputValue<S> for NaiveDate where
    S: ScalarValue,
    &'__b S: ScalarRefValue<'__b>, 
[src]

impl<S> ToInputValue<S> for NaiveDateTime where
    S: ScalarValue,
    &'__b S: ScalarRefValue<'__b>, 
[src]

impl<S> ToInputValue<S> for Url where
    S: ScalarValue,
    &'__b S: ScalarRefValue<'__b>, 
[src]

impl<S> ToInputValue<S> for Uuid where
    S: ScalarValue,
    &'__b S: ScalarRefValue<'__b>, 
[src]

Loading content...

Implementors

impl<S> ToInputValue<S> for ID where
    S: ScalarValue,
    &'__b S: ScalarRefValue<'__b>, 
[src]

impl<S: ScalarValue> ToInputValue<S> for Value<S>[src]

impl<__S: ScalarValue> ToInputValue<__S> for TypeKind[src]

Loading content...