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>

Implementations on Foreign Types§

source§

impl TryFromValue for Option<Value>

source§

impl TryFromValue for bool

source§

impl TryFromValue for Option<bool>

source§

impl TryFromValue for i8

source§

impl TryFromValue for Option<i8>

source§

impl TryFromValue for u8

source§

impl TryFromValue for Option<u8>

source§

impl TryFromValue for i16

source§

impl TryFromValue for Option<i16>

source§

impl TryFromValue for u16

source§

impl TryFromValue for Option<u16>

source§

impl TryFromValue for i32

source§

impl TryFromValue for Option<i32>

source§

impl TryFromValue for u32

source§

impl TryFromValue for Option<u32>

source§

impl TryFromValue for i64

source§

impl TryFromValue for Option<i64>

source§

impl TryFromValue for u64

source§

impl TryFromValue for Option<u64>

source§

impl TryFromValue for f32

source§

impl TryFromValue for Option<f32>

source§

impl TryFromValue for f64

source§

impl TryFromValue for Option<f64>

source§

impl TryFromValue for String

source§

impl TryFromValue for Option<String>

source§

impl TryFromValue for Option<SqlTimestamp>

source§

impl TryFromValue for Option<NaiveDateTime>

source§

impl TryFromValue for Option<SqlDate>

source§

impl TryFromValue for Option<NaiveDate>

source§

impl TryFromValue for Option<SqlSsTime2>

source§

impl TryFromValue for Option<NaiveTime>

Implementors§