Documentation
1
2
3
4
5
6
7
8
/// 解码数据库行数据
pub trait DecodeRow<Row>: Default + Sized {
    /// 错误类型.
    type Error;

    /// 解码一行数据,并尝试创建一个 `Self`对象.
    fn decode_row(row: &Row) -> Result<Self, Self::Error>;
}