pub trait FromSql: Sized {
// Required method
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>;
}Expand description
A trait for types that can be created from a SQLite value.
Required Methods§
Sourcefn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
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<[u8]>
impl FromSql for Arc<[u8]>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for Arc<str>
impl FromSql for Arc<str>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for Box<[u8]>
impl FromSql for Box<[u8]>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for Box<str>
impl FromSql for Box<str>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for Date
“YYYY-MM-DD” => ISO 8601 calendar date without timezone.
impl FromSql for Date
“YYYY-MM-DD” => ISO 8601 calendar date without timezone.
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for NonZeroI8
impl FromSql for NonZeroI8
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for NonZeroI16
impl FromSql for NonZeroI16
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for NonZeroI32
impl FromSql for NonZeroI32
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for NonZeroI64
impl FromSql for NonZeroI64
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for NonZeroIsize
impl FromSql for NonZeroIsize
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for NonZeroU8
impl FromSql for NonZeroU8
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for NonZeroU16
impl FromSql for NonZeroU16
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for NonZeroU32
impl FromSql for NonZeroU32
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for OffsetDateTime
impl FromSql for OffsetDateTime
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for PrimitiveDateTime
YYYY-MM-DD HH:MM
YYYY-MM-DDTHH:MM
YYYY-MM-DD HH:MM:SS
YYYY-MM-DDTHH:MM:SS
YYYY-MM-DD HH:MM:SS.SSS
YYYY-MM-DDTHH:MM:SS.SSS
=> ISO 8601 combined date and time with timezone
impl FromSql for PrimitiveDateTime
YYYY-MM-DD HH:MM YYYY-MM-DDTHH:MM YYYY-MM-DD HH:MM:SS YYYY-MM-DDTHH:MM:SS YYYY-MM-DD HH:MM:SS.SSS YYYY-MM-DDTHH:MM:SS.SSS => ISO 8601 combined date and time with timezone
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for Rc<[u8]>
impl FromSql for Rc<[u8]>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for Rc<str>
impl FromSql for Rc<str>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for String
impl FromSql for String
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Source§impl FromSql for Time
“HH:MM”/“HH:MM:SS”/“HH:MM:SS.SSS” => ISO 8601 time without timezone.
impl FromSql for Time
“HH:MM”/“HH:MM:SS”/“HH:MM:SS.SSS” => ISO 8601 time without timezone.