pub trait FromDynamic {
    // Required method
    fn from_dynamic(
        value: &Value,
        options: FromDynamicOptions
    ) -> Result<Self, Error>
       where Self: Sized;
}
Expand description

The FromDynamic trait allows a type to construct itself from a Value. This trait can be derived.

Required Methods§

source

fn from_dynamic( value: &Value, options: FromDynamicOptions ) -> Result<Self, Error>
where Self: Sized,

Implementations on Foreign Types§

source§

impl FromDynamic for bool

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for char

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for f32

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for f64

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for i8

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for i16

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for i32

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for i64

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for isize

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for u8

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for u16

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for u32

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for u64

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for ()

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for usize

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for String

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for Duration

source§

fn from_dynamic( value: &Value, options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for PathBuf

source§

fn from_dynamic( value: &Value, _options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl FromDynamic for NotNan<f64>

source§

fn from_dynamic( value: &Value, options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl<K: FromDynamic + Eq + Hash, T: FromDynamic> FromDynamic for HashMap<K, T>

source§

fn from_dynamic( value: &Value, options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl<T: FromDynamic> FromDynamic for Option<T>

source§

fn from_dynamic( value: &Value, options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl<T: FromDynamic> FromDynamic for Box<T>

source§

fn from_dynamic( value: &Value, options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl<T: FromDynamic> FromDynamic for Arc<T>

source§

fn from_dynamic( value: &Value, options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl<T: FromDynamic> FromDynamic for Vec<T>

source§

fn from_dynamic( value: &Value, options: FromDynamicOptions ) -> Result<Self, Error>

source§

impl<T: FromDynamic, const N: usize> FromDynamic for [T; N]

source§

fn from_dynamic( value: &Value, options: FromDynamicOptions ) -> Result<Self, Error>

Implementors§