Trait rusqlite::types::FromSql[][src]

pub trait FromSql: Sized {
    fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>;
}
Expand description

A trait for types that can be created from a SQLite value.

Required methods

Converts SQLite value into Rust value.

Implementations on Foreign Types

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

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

“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)

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

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

Deserialize text/blob to JSON Value.

Deserialize text to Url.

Implementors