pub trait GQLInput<S: Scalar>: Sizedwhere
Self: 'static,{
// Required method
fn from_variables(vars: &Values<S>) -> Result<Self, String>;
// Provided methods
fn from_variables_to_any(vars: &Values<S>) -> Result<Box<dyn Any>, String> { ... }
fn from_variables_array(vars: &[&Values<S>]) -> Result<Vec<Self>, String> { ... }
fn from_variables_to_any_array(
vars: &[&Values<S>],
) -> Result<Box<dyn Any>, String> { ... }
}Required Methods§
fn from_variables(vars: &Values<S>) -> Result<Self, String>
Provided Methods§
fn from_variables_to_any(vars: &Values<S>) -> Result<Box<dyn Any>, String>
fn from_variables_array(vars: &[&Values<S>]) -> Result<Vec<Self>, String>
fn from_variables_to_any_array( vars: &[&Values<S>], ) -> Result<Box<dyn Any>, String>
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.