Skip to main content

FromSql

Trait FromSql 

Source
pub trait FromSql: Sized {
    // Required method
    fn from_sql(value: &SqlValue) -> Result<Self, SqlError>;
}

Required Methods§

Source

fn from_sql(value: &SqlValue) -> Result<Self, SqlError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FromSql for String

Source§

impl FromSql for Vec<u8>

Source§

impl FromSql for bool

Source§

impl FromSql for f32

Source§

impl FromSql for f64

Source§

impl FromSql for i8

Source§

impl FromSql for i16

Source§

impl FromSql for i32

Source§

impl FromSql for i64

Source§

impl FromSql for u8

Source§

impl FromSql for u16

Source§

impl FromSql for u32

Source§

impl FromSql for u64

Source§

impl<T: FromSql> FromSql for Option<T>

Implementors§