Trait oci_rs::types::FromSqlValue[][src]

pub trait FromSqlValue {
    fn from_sql_value(sql_value: &SqlValue) -> Option<Self>
    where
        Self: Sized
; }

Allows conversion from a SqlValue.

Required Methods

Allows conversion from a SqlValue.

It allows for impossible conversions though the use of Option. e.g. an SqlValue::Null cannot be converted into a i64.

When the TryFrom trait becomes stable then this crate will probably switch to that instead.

Implementations on Foreign Types

impl FromSqlValue for String
[src]

impl FromSqlValue for i64
[src]

impl FromSqlValue for f64
[src]

impl FromSqlValue for Date<Utc>
[src]

impl FromSqlValue for DateTime<Utc>
[src]

impl FromSqlValue for DateTime<FixedOffset>
[src]

Implementors