juniper

Trait ToInputValue

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

Losslessly clones a Rust data type into an InputValue.

Required Methods§

Source

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

Performs the conversion.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Source§

impl<S, T: ToInputValue<S>> ToInputValue<S> for Option<T>

Source§

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

Source§

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

Source§

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

Source§

impl<T, S, const N: usize> ToInputValue<S> for [T; N]
where T: ToInputValue<S>, S: ScalarValue,

Source§

impl<Tz, __S> ToInputValue<__S> for DateTime<Tz>

Source§

impl<__S> ToInputValue<__S> for bool
where __S: ScalarValue,

Source§

impl<__S> ToInputValue<__S> for f64
where __S: ScalarValue,

Source§

impl<__S> ToInputValue<__S> for i32
where __S: ScalarValue,

Source§

impl<__S> ToInputValue<__S> for NaiveDate
where __S: ScalarValue,

Source§

impl<__S> ToInputValue<__S> for NaiveDateTime
where __S: ScalarValue,

Source§

impl<__S> ToInputValue<__S> for NaiveTime
where __S: ScalarValue,

Source§

impl<__S> ToInputValue<__S> for String
where __S: ScalarValue,

Implementors§

Source§

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

Source§

impl<S: Clone> ToInputValue<S> for Value<S>

Source§

impl<__S> ToInputValue<__S> for TypeKind
where __S: ScalarValue,

Source§

impl<__S> ToInputValue<__S> for ID
where __S: ScalarValue,