pub trait FromDbValue {
// Required methods
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
where Self: Sized;
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
where Self: Sized;
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
where Self: Sized;
}Available on crate feature
db only.Expand description
A trait for converting a database value to a Rust value.
Required Methods§
Sourcefn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>where
Self: Sized,
Available on crate feature sqlite only.
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>where
Self: Sized,
sqlite only.Converts the given SQLite database value to a Rust value.
§Errors
This method can return an error if the value is not compatible with the Rust type.
Sourcefn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>where
Self: Sized,
Available on crate feature postgres only.
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>where
Self: Sized,
postgres only.Converts the given PostgreSQL database value to a Rust value.
§Errors
This method can return an error if the value is not compatible with the Rust type.
Sourcefn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>where
Self: Sized,
Available on crate feature mysql only.
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>where
Self: Sized,
mysql only.Converts the given MySQL database value to a Rust value.
§Errors
This method can return an error if the value is not compatible with the Rust type.
Implementations on Foreign Types§
Source§impl FromDbValue for Option<bool>
impl FromDbValue for Option<bool>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for Option<f32>
impl FromDbValue for Option<f32>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for Option<f64>
impl FromDbValue for Option<f64>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for Option<i8>
impl FromDbValue for Option<i8>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§impl FromDbValue for Option<i16>
impl FromDbValue for Option<i16>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for Option<i32>
impl FromDbValue for Option<i32>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for Option<i64>
impl FromDbValue for Option<i64>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for Option<u8>
impl FromDbValue for Option<u8>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§impl FromDbValue for Option<u16>
impl FromDbValue for Option<u16>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§impl FromDbValue for Option<u32>
impl FromDbValue for Option<u32>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§impl FromDbValue for Option<u64>
impl FromDbValue for Option<u64>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§impl FromDbValue for Option<String>
impl FromDbValue for Option<String>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for Option<Vec<u8>>
impl FromDbValue for Option<Vec<u8>>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for Option<DateTime<FixedOffset>>
impl FromDbValue for Option<DateTime<FixedOffset>>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for Option<NaiveDate>
impl FromDbValue for Option<NaiveDate>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for Option<NaiveDateTime>
impl FromDbValue for Option<NaiveDateTime>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for Option<NaiveTime>
impl FromDbValue for Option<NaiveTime>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for bool
impl FromDbValue for bool
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for f32
impl FromDbValue for f32
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for f64
impl FromDbValue for f64
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for i8
impl FromDbValue for i8
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§impl FromDbValue for i16
impl FromDbValue for i16
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for i32
impl FromDbValue for i32
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for i64
impl FromDbValue for i64
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for u8
impl FromDbValue for u8
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§impl FromDbValue for u16
impl FromDbValue for u16
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§impl FromDbValue for u32
impl FromDbValue for u32
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§impl FromDbValue for u64
impl FromDbValue for u64
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§impl FromDbValue for String
impl FromDbValue for String
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for Vec<u8>
impl FromDbValue for Vec<u8>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for DateTime<FixedOffset>
impl FromDbValue for DateTime<FixedOffset>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for NaiveDate
impl FromDbValue for NaiveDate
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for NaiveDateTime
impl FromDbValue for NaiveDateTime
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl FromDbValue for NaiveTime
impl FromDbValue for NaiveTime
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.Source§impl<T: DatabaseField> FromDbValue for Option<Auto<T>>where
Option<T>: FromDbValue,
impl<T: DatabaseField> FromDbValue for Option<Auto<T>>where
Option<T>: FromDbValue,
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>where
Self: Sized,
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>where
Self: Sized,
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>where
Self: Sized,
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>where
Self: Sized,
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>where
Self: Sized,
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>where
Self: Sized,
Available on crate feature
mysql only.Source§impl<T: Model + Send + Sync> FromDbValue for Option<ForeignKey<T>>
impl<T: Model + Send + Sync> FromDbValue for Option<ForeignKey<T>>
Source§fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
fn from_sqlite(value: SqliteValueRef<'_>) -> Result<Self>
Available on crate feature
sqlite only.Source§fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
fn from_postgres(value: PostgresValueRef<'_>) -> Result<Self>
Available on crate feature
postgres only.Source§fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
fn from_mysql(value: MySqlValueRef<'_>) -> Result<Self>
Available on crate feature
mysql only.