TryFromValue

Trait TryFromValue 

Source
pub trait TryFromValue: Sized {
    type Error: Error + 'static;

    // Required method
    fn try_from_value(value: Option<Value>) -> Result<Self, Self::Error>;
}
Expand description

Column values can be converted to types implementing this trait.

This trait is implemented for primitive Rust types, String and chrono date and time types.

Required Associated Types§

Source

type Error: Error + 'static

Required Methods§

Source

fn try_from_value(value: Option<Value>) -> Result<Self, Self::Error>

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 TryFromValue for Option<Value>

Source§

impl TryFromValue for Option<bool>

Source§

impl TryFromValue for Option<f32>

Source§

impl TryFromValue for Option<f64>

Source§

impl TryFromValue for Option<i8>

Source§

impl TryFromValue for Option<i16>

Source§

impl TryFromValue for Option<i32>

Source§

impl TryFromValue for Option<i64>

Source§

impl TryFromValue for Option<u8>

Source§

impl TryFromValue for Option<u16>

Source§

impl TryFromValue for Option<u32>

Source§

impl TryFromValue for Option<u64>

Source§

impl TryFromValue for Option<String>

Source§

impl TryFromValue for Option<NaiveDate>

Source§

impl TryFromValue for Option<NaiveDateTime>

Source§

impl TryFromValue for Option<NaiveTime>

Source§

impl TryFromValue for Option<SqlDate>

Source§

impl TryFromValue for Option<SqlSsTime2>

Source§

impl TryFromValue for Option<SqlTimestamp>

Source§

impl TryFromValue for bool

Source§

impl TryFromValue for f32

Source§

impl TryFromValue for f64

Source§

impl TryFromValue for i8

Source§

impl TryFromValue for i16

Source§

impl TryFromValue for i32

Source§

impl TryFromValue for i64

Source§

impl TryFromValue for u8

Source§

impl TryFromValue for u16

Source§

impl TryFromValue for u32

Source§

impl TryFromValue for u64

Source§

impl TryFromValue for String

Implementors§