Trait rusqlite::types::FromSql

source ·
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§

source

fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>

Converts SQLite value into Rust value.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromSql for bool

source§

impl FromSql for f32

source§

impl FromSql for f64

source§

impl FromSql for i8

source§

impl FromSql for i16

source§

impl FromSql for i32

source§

impl FromSql for i64

source§

impl FromSql for isize

source§

impl FromSql for u8

source§

impl FromSql for u16

source§

impl FromSql for u32

source§

impl FromSql for u64

source§

impl FromSql for usize

source§

impl FromSql for DateTime<FixedOffset>

RFC3339 (“YYYY-MM-DD HH:MM:SS.SSS[+-]HH:MM”) into DateTime<FixedOffset>.

source§

impl FromSql for DateTime<Local>

RFC3339 (“YYYY-MM-DD HH:MM:SS.SSS[+-]HH:MM”) into DateTime<Local>.

source§

impl FromSql for DateTime<Utc>

RFC3339 (“YYYY-MM-DD HH:MM:SS.SSS[+-]HH:MM”) into DateTime<Utc>.

source§

impl FromSql for NaiveDate

“YYYY-MM-DD” => ISO 8601 calendar date without timezone.

source§

impl FromSql for NaiveDateTime

“YYYY-MM-DD HH:MM:SS”/“YYYY-MM-DD HH:MM:SS.SSS” => ISO 8601 combined date and time without timezone. (“YYYY-MM-DDTHH:MM:SS”/“YYYY-MM-DDTHH:MM:SS.SSS” also supported)

source§

impl FromSql for NaiveTime

“HH:MM”/“HH:MM:SS”/“HH:MM:SS.SSS” => ISO 8601 time without timezone.

source§

impl FromSql for Box<str>

source§

impl FromSql for Rc<str>

source§

impl FromSql for String

source§

impl FromSql for Arc<str>

source§

impl FromSql for Vec<u8>

source§

impl<T: FromSql> FromSql for Option<T>

source§

impl<const N: usize> FromSql for [u8; N]

Implementors§