ToInputValue

Trait ToInputValue 

Source
pub trait ToInputValue<S = DefaultScalarValue> {
    // 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.

Implementations on Foreign Types§

Source§

impl<S> ToInputValue<S> for str
where Self: ToScalarValue<S>,

Source§

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

Source§

impl<T, S> ToInputValue<S> for &T
where T: ToInputValue<S> + ?Sized,

Source§

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

Source§

impl<T, S> ToInputValue<S> for Box<T>
where T: ToInputValue<S> + ?Sized,

Source§

impl<T, S> ToInputValue<S> for Arc<T>
where T: ToInputValue<S> + ?Sized,

Source§

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

Source§

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

Source§

impl<Tz, __S> ToInputValue<__S> for DateTime<Tz>
where Tz: TimeZone + FromFixedOffset, Tz::Offset: Display, __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for Tz
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<__S> ToInputValue<__S> for BigDecimal
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for DateTime
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for ObjectId
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

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

Source§

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

Source§

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

Source§

impl<__S> ToInputValue<__S> for CompactString
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for Date
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for DateTime
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for Time
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for Span
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for Timestamp
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for Offset
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for TimeZone
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for Zoned
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for Decimal
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for Date
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for OffsetDateTime
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for PrimitiveDateTime
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for Time
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for UtcOffset
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for Url
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for Uuid
where __S: ScalarValue, Self: ToScalarValue<__S>,

Implementors§

Source§

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

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 Episode
where __S: ScalarValue,

Source§

impl<__S> ToInputValue<__S> for juniper::integrations::jiff::TimeZone
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

impl<__S> ToInputValue<__S> for ArcStr
where __S: ScalarValue, Self: ToScalarValue<__S>,

Source§

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