pub trait IntoInputValue<S> {
// Required method
fn into_input_value(self) -> InputValue<S>;
}Expand description
Conversion into an InputValue.
This trait exists to work around orphan rules and allow to specify custom efficient
conversions whenever some custom ScalarValue is involved
(impl IntoInputValue<CustomScalarValue> for ForeignType would work, while
impl From<ForeignType> for InputValue<CustomScalarValue> wound not).
This trait is used inside graphql_input_value! macro expansion and implementing it allows to
put values of the implementor type there.
Required Methods§
Sourcefn into_input_value(self) -> InputValue<S>
fn into_input_value(self) -> InputValue<S>
Converts this value into an InputValue.