tiberius_mappers/lib.rs
1pub use tiberius_mappers_derive::TryFromRow;
2
3#[doc = include_str!("../../README.md")]
4#[cfg(doctest)]
5pub struct ReadmeDocTests;
6
7/// Defines a conversion from a tiberius::Row to a struct.
8pub trait TryFromRow {
9 /// Try to convert a tiberius::Row to a struct. Returns a Result using the tiberius::error::Error type.
10 fn try_from_row(row: tiberius::Row) -> Result<Self, tiberius::error::Error>
11 where
12 Self: Sized;
13}