Trait juniper::ToInputValue[][src]

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

Losslessly clones a Rust data type into an InputValue.

Required methods

fn to_input_value(&self) -> InputValue<S>[src]

Expand description

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
[src]

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

impl<S> ToInputValue<S> for bool where
    S: ScalarValue
[src]

impl<S> ToInputValue<S> for i32 where
    S: ScalarValue
[src]

impl<S> ToInputValue<S> for f64 where
    S: ScalarValue
[src]

impl<S> ToInputValue<S> for DateTime<FixedOffset> where
    S: ScalarValue
[src]

impl<S> ToInputValue<S> for DateTime<Utc> where
    S: ScalarValue
[src]

impl<S> ToInputValue<S> for NaiveDate where
    S: ScalarValue
[src]

impl<S> ToInputValue<S> for NaiveDateTime where
    S: ScalarValue
[src]

impl<S> ToInputValue<S> for Url where
    S: ScalarValue
[src]

impl<S> ToInputValue<S> for Uuid where
    S: ScalarValue
[src]

impl<S> ToInputValue<S> for ObjectId where
    S: ScalarValue
[src]

impl<S> ToInputValue<S> for UtcDateTime where
    S: ScalarValue
[src]

Loading content...

Implementors

impl<S> ToInputValue<S> for ID where
    S: ScalarValue
[src]

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

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

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

Loading content...