zino_orm/
row.rs

1/// A collection of values that can be decoded from a single row.
2///
3/// This trait can be derived by `zino_derive::DecodeRow`.
4pub trait DecodeRow<Row>: Default + Sized {
5    /// The error type.
6    type Error;
7
8    /// Decodes a row and attempts to create an instance of `Self`.
9    fn decode_row(row: &Row) -> Result<Self, Self::Error>;
10}