pub trait Decode: Sized {
// Required methods
fn from_sqlite(row: &SqliteRow, idx: &Idx<'_>) -> Result<Self, Error>;
fn from_pg(row: &PgRow, idx: &Idx<'_>) -> Result<Self, Error>;
}Expand description
What Row::try_get can read back.
Two methods rather than one generic bound, because the driver row types decode through separate traits. The impls are mechanical; the list of types is short because the schema stores five.
Required Methods§
fn from_sqlite(row: &SqliteRow, idx: &Idx<'_>) -> Result<Self, Error>
fn from_pg(row: &PgRow, idx: &Idx<'_>) -> Result<Self, Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".