pub trait Model:
Send
+ Sync
+ Sized
+ 'static {
const TABLE: &'static str;
const COLUMNS: &'static [&'static str];
const INSERT_COLUMNS: &'static [&'static str];
// Required methods
fn id(&self) -> i64;
fn from_row(row: Row<'_>) -> Result<Self>;
fn insert_values(&self) -> Vec<Value>;
}Required Associated Constants§
const TABLE: &'static str
const COLUMNS: &'static [&'static str]
const INSERT_COLUMNS: &'static [&'static str]
Required Methods§
fn id(&self) -> i64
fn from_row(row: Row<'_>) -> Result<Self>
fn insert_values(&self) -> Vec<Value>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".