[][src]Trait odbc_iter::TryFromValue

pub trait TryFromValue: Sized {
    type Error: Error + 'static;
    fn try_from_value(value: Option<Value>) -> Result<Self, Self::Error>;
}

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.

Associated Types

type Error: Error + 'static

Loading content...

Required methods

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

Loading content...

Implementations on Foreign Types

impl TryFromValue for Option<Value>[src]

type Error = Infallible

impl TryFromValue for bool[src]

impl TryFromValue for Option<bool>[src]

impl TryFromValue for i8[src]

impl TryFromValue for Option<i8>[src]

impl TryFromValue for u8[src]

impl TryFromValue for Option<u8>[src]

impl TryFromValue for i16[src]

impl TryFromValue for Option<i16>[src]

impl TryFromValue for u16[src]

impl TryFromValue for Option<u16>[src]

impl TryFromValue for i32[src]

impl TryFromValue for Option<i32>[src]

impl TryFromValue for u32[src]

impl TryFromValue for Option<u32>[src]

impl TryFromValue for i64[src]

impl TryFromValue for Option<i64>[src]

impl TryFromValue for u64[src]

impl TryFromValue for Option<u64>[src]

impl TryFromValue for f32[src]

impl TryFromValue for Option<f32>[src]

impl TryFromValue for f64[src]

impl TryFromValue for Option<f64>[src]

impl TryFromValue for String[src]

impl TryFromValue for Option<String>[src]

impl TryFromValue for Option<SqlTimestamp>[src]

impl TryFromValue for Option<NaiveDateTime>[src]

impl TryFromValue for Option<SqlDate>[src]

impl TryFromValue for Option<NaiveDate>[src]

impl TryFromValue for Option<SqlSsTime2>[src]

impl TryFromValue for Option<NaiveTime>[src]

Loading content...

Implementors

impl TryFromValue for Value[src]

impl TryFromValue for NaiveDate[src]

impl TryFromValue for NaiveDateTime[src]

impl TryFromValue for NaiveTime[src]

impl TryFromValue for SqlDate[src]

impl TryFromValue for SqlSsTime2[src]

impl TryFromValue for SqlTimestamp[src]

Loading content...