pub trait DecodeSelectedRef<RowRef, R> {
// Required method
fn decode(row: RowRef) -> Result<R, DrizzleError>;
}Expand description
Decodes one result row into R the way the select marker Self asks.
SelectAs<R> uses R: TryFrom<RowRef> (the FromRow derive). Every
other marker uses FromDrizzleRow.
Required Methods§
Sourcefn decode(row: RowRef) -> Result<R, DrizzleError>
fn decode(row: RowRef) -> Result<R, DrizzleError>
Decodes row into R.
§Errors
Returns an error if the row cannot be decoded into the expected type (missing columns, type mismatch, or downstream conversion failure).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".