Trait FromSqlxType

Source
pub trait FromSqlxType {
    type DB: Database;

    // Required method
    fn from_sqlx_type(sqlx_type: &<Self::DB as Database>::TypeInfo) -> Self
       where <Self as FromSqlxType>::DB: Database;
}

Required Associated Types§

Required Methods§

Source

fn from_sqlx_type(sqlx_type: &<Self::DB as Database>::TypeInfo) -> Self
where <Self as FromSqlxType>::DB: Database,

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 FromSqlxType for TypeInfo

Source§

type DB = Sqlite

Source§

fn from_sqlx_type(sqlx_type: &<Self::DB as Database>::TypeInfo) -> Self
where <Self as FromSqlxType>::DB: Database,

Implementors§