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 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 FromSql for NonZeroI8

source§

impl FromSql for NonZeroI16

source§

impl FromSql for NonZeroI32

source§

impl FromSql for NonZeroI64

source§

impl FromSql for NonZeroIsize

source§

impl FromSql for NonZeroU8

source§

impl FromSql for NonZeroU16

source§

impl FromSql for NonZeroU32

source§

impl FromSql for NonZeroU64

source§

impl FromSql for NonZeroUsize

source§

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

source§

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

Implementors§