FromArrayParams

Trait FromArrayParams 

Source
pub trait FromArrayParams: Sized {
    // Required method
    fn from_array_params(
        params: &[Value],
    ) -> Result<Self, Box<dyn Error + Send + Sync>>;
}
Expand description

Helper trait for converting array parameters to structured objects

Required Methods§

Source

fn from_array_params( params: &[Value], ) -> Result<Self, Box<dyn Error + Send + Sync>>

Convert from array of JSON values to structured type

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.

Implementors§