rusqlite::types

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§