Skip to main content

FromSqlValue

Trait FromSqlValue 

Source
pub trait FromSqlValue: Sized {
    // Required method
    fn from_sql_value(value: DbValueRef<'_>) -> Result<Self, DatabaseError>;
}
Expand description

Builds a Rust value from a SQL column value (the read side of the codec).

Required Methods§

Source

fn from_sql_value(value: DbValueRef<'_>) -> Result<Self, DatabaseError>

Reads Self from a SQL column value.

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 FromSqlValue for AccountId

Source§

impl FromSqlValue for BlockHeader

Source§

impl FromSqlValue for Nullifier

Source§

impl FromSqlValue for String

Source§

impl FromSqlValue for TransactionId

Source§

impl FromSqlValue for Vec<u8>

Source§

impl FromSqlValue for Word

Source§

impl FromSqlValue for bool

Source§

impl FromSqlValue for i64

Source§

impl<T: FromSqlValue> FromSqlValue for Option<T>

Implementors§