tiberius-mappers 0.7.0

Row mappers for Tiberius
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub use tiberius_mappers_derive::TryFromRow;

#[doc = include_str!("../../README.md")]
#[cfg(doctest)]
pub struct ReadmeDocTests;

/// Defines a conversion from a tiberius::Row to a struct.
pub trait TryFromRow {
    /// Try to convert a tiberius::Row to a struct. Returns a Result using the tiberius::error::Error type.
    fn try_from_row(row: tiberius::Row) -> Result<Self, tiberius::error::Error>
    where
        Self: Sized;
}