zino_orm/
row.rs

1
2
3
4
5
6
7
8
9
10
/// A collection of values that can be decoded from a single row.
///
/// This trait can be derived by `zino_derive::DecodeRow`.
pub trait DecodeRow<Row>: Default + Sized {
    /// The error type.
    type Error;

    /// Decodes a row and attempts to create an instance of `Self`.
    fn decode_row(row: &Row) -> Result<Self, Self::Error>;
}