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

Implementations on Foreign Types§

§

impl FromSql for Arc<[u8]>

§

impl FromSql for Arc<str>

Source§

impl FromSql for Audience

§

impl FromSql for Box<[u8]>

§

impl FromSql for Box<str>

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 MemberRole

§

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>

Source§

impl FromSql for ObjectId

§

impl FromSql for Rc<[u8]>

§

impl FromSql for Rc<str>

Source§

impl FromSql for SqlValue

Source§

impl FromSql for StoreId

§

impl FromSql for String

Source§

impl FromSql for UuidText

§

impl FromSql for Vec<u8>

§

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

§

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 ChangeOutcome

Source§

impl FromSql for DeviceState

Source§

impl FromSql for FreshChangeOutcome

Source§

impl FromSql for InviteOutcome

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.

Source§

impl FromSql for StorageSetupOutcome

§

impl FromSql for Value