pub trait Modelable {
// Required method
fn bind_to(&self, stmt: &mut Statement<'_>, col: usize) -> Result<()>;
// Provided methods
fn build_from(
_stmt: &Statement<'_>,
_col_offset: usize
) -> Result<(Self, usize)>
where Self: Sized { ... }
fn column_type() -> &'static str
where Self: Sized { ... }
}
Expand description
A database value, aka a single column of a single row