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
fn from_sql_value(sql_value: &SqlValue) -> Option<Self> where
Self: Sized,
Self: Sized,
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 String
fn from_sql_value(sql_value: &SqlValue) -> Option<Self>
[src]
fn from_sql_value(sql_value: &SqlValue) -> Option<Self>
impl FromSqlValue for i64
[src]
impl FromSqlValue for i64
fn from_sql_value(sql_value: &SqlValue) -> Option<Self>
[src]
fn from_sql_value(sql_value: &SqlValue) -> Option<Self>
impl FromSqlValue for f64
[src]
impl FromSqlValue for f64
fn from_sql_value(sql_value: &SqlValue) -> Option<Self>
[src]
fn from_sql_value(sql_value: &SqlValue) -> Option<Self>
impl FromSqlValue for Date<Utc>
[src]
impl FromSqlValue for Date<Utc>
fn from_sql_value(sql_value: &SqlValue) -> Option<Self>
[src]
fn from_sql_value(sql_value: &SqlValue) -> Option<Self>
impl FromSqlValue for DateTime<Utc>
[src]
impl FromSqlValue for DateTime<Utc>
fn from_sql_value(sql_value: &SqlValue) -> Option<Self>
[src]
fn from_sql_value(sql_value: &SqlValue) -> Option<Self>
impl FromSqlValue for DateTime<FixedOffset>
[src]
impl FromSqlValue for DateTime<FixedOffset>
fn from_sql_value(sql_value: &SqlValue) -> Option<Self>
[src]
fn from_sql_value(sql_value: &SqlValue) -> Option<Self>