Skip to main content

FromSqliteRow

Trait FromSqliteRow 

Source
pub trait FromSqliteRow: Sized {
    // Required method
    fn from_row(row: &Row<'_>) -> Result<Self, FromSqliteRowError>;
}
Expand description

Trait for converting a SQLite row to a Rust type.

This trait is implemented for types that can be deserialized from a SQLite row.

Required Methods§

Source

fn from_row(row: &Row<'_>) -> Result<Self, FromSqliteRowError>

Convert a SQLite row to this type.

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 FromSqliteRow for Value

Implement FromSqliteRow for JSON values.

Implementors§