ts_sql_helper_lib/
from_row.rs

1use postgres::Row;
2
3/// Convert a row to an instance of self.
4pub trait FromRow: Sized {
5    /// Try convert a row to an instance of self.
6    #[track_caller]
7    fn from_row(row: &Row) -> Result<Self, postgres::Error>;
8}