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