Trait FromValue

Source
pub trait FromValue<V = Value>: Sized {
    // Required method
    fn from_value(value: V) -> StrResult<Self>;
}

Required Methods§

Source

fn from_value(value: V) -> StrResult<Self>

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.

Implementations on Foreign Types§

Source§

impl FromValue for bool

Source§

fn from_value(value: Value) -> StrResult<Self>

Source§

impl FromValue for char

Source§

fn from_value(value: Value) -> StrResult<Self>

Source§

impl FromValue for i64

Source§

fn from_value(value: Value) -> StrResult<Self>

Source§

impl FromValue for ()

Source§

fn from_value(value: Value) -> StrResult<Self>

Source§

impl FromValue for usize

Source§

fn from_value(value: Value) -> StrResult<Self>

Source§

impl<T: FromValue> FromValue for Option<T>

Source§

fn from_value(value: Value) -> StrResult<Self>

Implementors§