Skip to main content

FromPartialRusqliteRow

Trait FromPartialRusqliteRow 

Source
pub trait FromPartialRusqliteRow: Sized {
    // Required method
    fn from_partial_rusqlite_row(
        row: &Row<'_>,
        selected: &[&str],
    ) -> Result<Self, Error>;
}
Expand description

Partial-row decoder — mirrors [cratestack_sqlx::FromPartialPgRow] for the embedded backend. The macro emits this impl alongside FromRusqliteRow; users see it only as the bound on the typed builder’s T generic when they call .select(...).

Required Methods§

Source

fn from_partial_rusqlite_row( row: &Row<'_>, selected: &[&str], ) -> Result<Self, Error>

Decode row into Self using selected as the projection manifest. Columns not in selected populate to their type’s Default::default() value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§