Skip to main content

FromSql

Trait FromSql 

Source
pub trait FromSql: Sized {
    // Required method
    fn from_sql(type_oid: u32, buf: &[u8]) -> Result<Self, PgError>;
}

Required Methods§

Source

fn from_sql(type_oid: u32, buf: &[u8]) -> Result<Self, PgError>

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 DateTime<Utc>

Source§

fn from_sql(_type_oid: u32, buf: &[u8]) -> Result<Self, PgError>

Source§

impl FromSql for String

Source§

fn from_sql(_type_oid: u32, buf: &[u8]) -> Result<Self, PgError>

Source§

impl FromSql for Uuid

Source§

fn from_sql(_type_oid: u32, buf: &[u8]) -> Result<Self, PgError>

Source§

impl FromSql for Vec<u8>

Source§

fn from_sql(_type_oid: u32, buf: &[u8]) -> Result<Self, PgError>

Source§

impl FromSql for bool

Source§

fn from_sql(_type_oid: u32, buf: &[u8]) -> Result<Self, PgError>

Source§

impl FromSql for f32

Source§

fn from_sql(_type_oid: u32, buf: &[u8]) -> Result<Self, PgError>

Source§

impl FromSql for f64

Source§

fn from_sql(_type_oid: u32, buf: &[u8]) -> Result<Self, PgError>

Source§

impl FromSql for i16

Source§

fn from_sql(_type_oid: u32, buf: &[u8]) -> Result<Self, PgError>

Source§

impl FromSql for i32

Source§

fn from_sql(_type_oid: u32, buf: &[u8]) -> Result<Self, PgError>

Source§

impl FromSql for i64

Source§

fn from_sql(_type_oid: u32, buf: &[u8]) -> Result<Self, PgError>

Source§

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

Source§

fn from_sql(type_oid: u32, buf: &[u8]) -> Result<Self, PgError>

Source§

impl<T: FromSql> FromSql for Vec<T>

Source§

fn from_sql(_type_oid: u32, buf: &[u8]) -> Result<Self, PgError>

Implementors§