FromSqlOwned

Trait FromSqlOwned 

Source
pub trait FromSqlOwned
where Self: Sized,
{ // Required method fn from_sql_owned(value: ColumnData<'static>) -> Result<Option<Self>>; }
Expand description

A conversion trait from a TDS type by-value.

Required Methods§

Source

fn from_sql_owned(value: ColumnData<'static>) -> Result<Option<Self>>

Returns the value, None being a null value, taking the ownership.

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 FromSqlOwned for bool

Source§

fn from_sql_owned(data: ColumnData<'static>) -> Result<Option<Self>>

Source§

impl FromSqlOwned for f32

Source§

fn from_sql_owned(data: ColumnData<'static>) -> Result<Option<Self>>

Source§

impl FromSqlOwned for f64

Source§

fn from_sql_owned(data: ColumnData<'static>) -> Result<Option<Self>>

Source§

impl FromSqlOwned for i16

Source§

fn from_sql_owned(data: ColumnData<'static>) -> Result<Option<Self>>

Source§

impl FromSqlOwned for i32

Source§

fn from_sql_owned(data: ColumnData<'static>) -> Result<Option<Self>>

Source§

impl FromSqlOwned for i64

Source§

fn from_sql_owned(data: ColumnData<'static>) -> Result<Option<Self>>

Source§

impl FromSqlOwned for u8

Source§

fn from_sql_owned(data: ColumnData<'static>) -> Result<Option<Self>>

Source§

impl FromSqlOwned for String

Source§

fn from_sql_owned(value: ColumnData<'static>) -> Result<Option<Self>>

Source§

impl FromSqlOwned for Vec<u8>

Source§

fn from_sql_owned(value: ColumnData<'static>) -> Result<Option<Self>>

Implementors§

Source§

impl FromSqlOwned for BigDecimal

Available on crate feature bigdecimal only.
Source§

impl FromSqlOwned for Decimal

Available on crate feature rust_decimal only.
Source§

impl FromSqlOwned for Numeric

Source§

impl FromSqlOwned for Uuid

Source§

impl FromSqlOwned for DateTime<FixedOffset>

Available on crate feature chrono only.
Source§

impl FromSqlOwned for DateTime<Utc>

Available on crate feature chrono only.
Source§

impl FromSqlOwned for NaiveDate

Available on crate feature chrono only.
Source§

impl FromSqlOwned for NaiveDateTime

Available on crate feature chrono only.
Source§

impl FromSqlOwned for NaiveTime

Available on crate feature chrono only.
Source§

impl FromSqlOwned for Date

Available on crate feature time only.
Source§

impl FromSqlOwned for OffsetDateTime

Available on crate feature time only.
Source§

impl FromSqlOwned for PrimitiveDateTime

Available on crate feature time only.
Source§

impl FromSqlOwned for Time

Available on crate feature time only.
Source§

impl FromSqlOwned for XmlData