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§
Sourcefn to_input_value(&self) -> InputValue<S>
fn to_input_value(&self) -> InputValue<S>
Performs the conversion.
Implementations on Foreign Types§
Source§impl<S> ToInputValue<S> for strwhere
Self: ToScalarValue<S>,
impl<S> ToInputValue<S> for strwhere
Self: ToScalarValue<S>,
fn to_input_value(&self) -> InputValue<S>
Source§impl<S, T> ToInputValue<S> for Option<T>where
T: ToInputValue<S>,
impl<S, T> ToInputValue<S> for Option<T>where
T: ToInputValue<S>,
fn to_input_value(&self) -> InputValue<S>
Source§impl<T, S> ToInputValue<S> for &Twhere
T: ToInputValue<S> + ?Sized,
impl<T, S> ToInputValue<S> for &Twhere
T: ToInputValue<S> + ?Sized,
fn to_input_value(&self) -> InputValue<S>
Source§impl<T, S> ToInputValue<S> for [T]where
T: ToInputValue<S>,
impl<T, S> ToInputValue<S> for [T]where
T: ToInputValue<S>,
fn to_input_value(&self) -> InputValue<S>
Source§impl<T, S> ToInputValue<S> for Box<T>where
T: ToInputValue<S> + ?Sized,
impl<T, S> ToInputValue<S> for Box<T>where
T: ToInputValue<S> + ?Sized,
fn to_input_value(&self) -> InputValue<S>
Source§impl<T, S> ToInputValue<S> for Arc<T>where
T: ToInputValue<S> + ?Sized,
impl<T, S> ToInputValue<S> for Arc<T>where
T: ToInputValue<S> + ?Sized,
fn to_input_value(&self) -> InputValue<S>
Source§impl<T, S> ToInputValue<S> for Vec<T>where
T: ToInputValue<S>,
impl<T, S> ToInputValue<S> for Vec<T>where
T: ToInputValue<S>,
fn to_input_value(&self) -> InputValue<S>
Source§impl<T, S, const N: usize> ToInputValue<S> for [T; N]where
T: ToInputValue<S>,
impl<T, S, const N: usize> ToInputValue<S> for [T; N]where
T: ToInputValue<S>,
fn to_input_value(&self) -> InputValue<S>
Source§impl<Tz, __S> ToInputValue<__S> for DateTime<Tz>where
Tz: TimeZone + FromFixedOffset,
Tz::Offset: Display,
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature chrono only.
impl<Tz, __S> ToInputValue<__S> for DateTime<Tz>where
Tz: TimeZone + FromFixedOffset,
Tz::Offset: Display,
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
chrono only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for Tzwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature chrono-tz only.
impl<__S> ToInputValue<__S> for Tzwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
chrono-tz only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for boolwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
impl<__S> ToInputValue<__S> for boolwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for f64where
__S: ScalarValue,
Self: ToScalarValue<__S>,
impl<__S> ToInputValue<__S> for f64where
__S: ScalarValue,
Self: ToScalarValue<__S>,
fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for i32where
__S: ScalarValue,
Self: ToScalarValue<__S>,
impl<__S> ToInputValue<__S> for i32where
__S: ScalarValue,
Self: ToScalarValue<__S>,
fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for Stringwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
impl<__S> ToInputValue<__S> for Stringwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for BigDecimalwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature bigdecimal only.
impl<__S> ToInputValue<__S> for BigDecimalwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
bigdecimal only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for DateTimewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature bson only.
impl<__S> ToInputValue<__S> for DateTimewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
bson only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for ObjectIdwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature bson only.
impl<__S> ToInputValue<__S> for ObjectIdwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
bson only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for NaiveDatewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature chrono only.
impl<__S> ToInputValue<__S> for NaiveDatewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
chrono only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for NaiveDateTimewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature chrono only.
impl<__S> ToInputValue<__S> for NaiveDateTimewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
chrono only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for NaiveTimewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature chrono only.
impl<__S> ToInputValue<__S> for NaiveTimewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
chrono only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for CompactStringwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
impl<__S> ToInputValue<__S> for CompactStringwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for Datewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature jiff only.
impl<__S> ToInputValue<__S> for Datewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
jiff only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for DateTimewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature jiff only.
impl<__S> ToInputValue<__S> for DateTimewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
jiff only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for Timewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature jiff only.
impl<__S> ToInputValue<__S> for Timewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
jiff only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for Spanwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature jiff only.
impl<__S> ToInputValue<__S> for Spanwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
jiff only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for Timestampwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature jiff only.
impl<__S> ToInputValue<__S> for Timestampwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
jiff only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for Offsetwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature jiff only.
impl<__S> ToInputValue<__S> for Offsetwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
jiff only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for TimeZonewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature jiff only.
impl<__S> ToInputValue<__S> for TimeZonewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
jiff only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for Zonedwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature jiff only.
impl<__S> ToInputValue<__S> for Zonedwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
jiff only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for Decimalwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature rust_decimal only.
impl<__S> ToInputValue<__S> for Decimalwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
rust_decimal only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for Datewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature time only.
impl<__S> ToInputValue<__S> for Datewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
time only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for OffsetDateTimewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature time only.
impl<__S> ToInputValue<__S> for OffsetDateTimewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
time only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for PrimitiveDateTimewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature time only.
impl<__S> ToInputValue<__S> for PrimitiveDateTimewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
time only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for Timewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature time only.
impl<__S> ToInputValue<__S> for Timewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
time only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for UtcOffsetwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature time only.
impl<__S> ToInputValue<__S> for UtcOffsetwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
time only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for Urlwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature url only.
impl<__S> ToInputValue<__S> for Urlwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
url only.fn to_input_value(&self) -> InputValue<__S>
Source§impl<__S> ToInputValue<__S> for Uuidwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature uuid only.
impl<__S> ToInputValue<__S> for Uuidwhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
uuid only.fn to_input_value(&self) -> InputValue<__S>
Implementors§
impl<S, T> ToInputValue<S> for Nullable<T>where
T: ToInputValue<S>,
impl<S: Clone> ToInputValue<S> for Value<S>
impl<__S> ToInputValue<__S> for TypeKindwhere
__S: ScalarValue,
impl<__S> ToInputValue<__S> for Episodewhere
__S: ScalarValue,
Available on crate feature
expose-test-schema only.impl<__S> ToInputValue<__S> for juniper::integrations::jiff::TimeZonewhere
__S: ScalarValue,
Self: ToScalarValue<__S>,
Available on crate feature
jiff only.