pub trait FromSql: Sized {
// Required method
fn column_result(value: ValueRef<'_>) -> Result<Self, FromSqlError>;
}Expand description
A trait for types that can be created from a SQLite value.
Required Methods§
Sourcefn column_result(value: ValueRef<'_>) -> Result<Self, FromSqlError>
fn column_result(value: ValueRef<'_>) -> Result<Self, FromSqlError>
Converts SQLite value into Rust 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 FromSql for Arc<str>
impl FromSql for Arc<str>
fn column_result(value: ValueRef<'_>) -> Result<Arc<str>, FromSqlError>
Source§impl FromSql for Box<str>
impl FromSql for Box<str>
fn column_result(value: ValueRef<'_>) -> Result<Box<str>, FromSqlError>
Source§impl FromSql for Rc<str>
impl FromSql for Rc<str>
fn column_result(value: ValueRef<'_>) -> Result<Rc<str>, FromSqlError>
Source§impl FromSql for String
impl FromSql for String
fn column_result(value: ValueRef<'_>) -> Result<String, FromSqlError>
Source§impl FromSql for Value
Deserialize text/blob to JSON Value.
impl FromSql for Value
Deserialize text/blob to JSON Value.