Skip to main content

FromSql

Trait FromSql 

pub trait FromSql: Sized {
    // Required method
    fn column_result(value: ValueRef<'_>) -> Result<Self, FromSqlError>;
}
Expand description

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

Required Methods§

fn column_result(value: ValueRef<'_>) -> Result<Self, FromSqlError>

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 Audience

§

impl FromSql for bool

§

impl FromSql for f32

§

impl FromSql for f64

§

impl FromSql for i8

§

impl FromSql for i16

§

impl FromSql for i32

§

impl FromSql for i64

§

impl FromSql for isize

§

impl FromSql for u8

§

impl FromSql for u16

§

impl FromSql for u32

Source§

impl FromSql for CircleId

Source§

impl FromSql for DeviceId

Source§

impl FromSql for FileId

Source§

impl FromSql for KeyId

Source§

impl FromSql for MemberId

Source§

impl FromSql for ObjectId

Source§

impl FromSql for StoreId

Source§

impl FromSql for UuidText

§

impl FromSql for Box<str>

§

impl FromSql for Box<[u8]>

§

impl FromSql for Rc<str>

§

impl FromSql for Rc<[u8]>

§

impl FromSql for String

§

impl FromSql for Arc<str>

§

impl FromSql for Arc<[u8]>

§

impl FromSql for Vec<u8>

§

impl FromSql for NonZero<i8>

§

impl FromSql for NonZero<i16>

§

impl FromSql for NonZero<i32>

§

impl FromSql for NonZero<i64>

§

impl FromSql for NonZero<isize>

§

impl FromSql for NonZero<u8>

§

impl FromSql for NonZero<u16>

§

impl FromSql for NonZero<u32>

§

impl<T> FromSql for Cow<'_, T>
where T: ToOwned + ?Sized, <T as ToOwned>::Owned: FromSql,

§

fn column_result(value: ValueRef<'_>) -> Result<Cow<'_, T>, FromSqlError>

§

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

§

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

Implementors§

Source§

impl FromSql for OperationOutcome

Reads coven_operations.outcome, once it is not NULL.

§

impl FromSql for Value

Source§

impl FromSql for MoveId

Source§

impl FromSql for RowKey

Reads a key as coven_key gives it (api.md E4): coven’s encoding of a row’s key (format.md D3). A value that isn’t one is DamagedDatabase.