pub trait IgnisModel {
const TABLE: &'static str;
const PK: &'static str;
const SCHEMA: Option<&'static str>;
const FULL_TABLE_NAME: &'static str;
// Required method
fn get_primary_key_value(&self) -> Result<BindValue>;
// Provided method
fn get_composite_key_values(&self) -> Result<Vec<(&'static str, BindValue)>> { ... }
}Required Associated Constants§
const TABLE: &'static str
const PK: &'static str
const SCHEMA: Option<&'static str>
const FULL_TABLE_NAME: &'static str
Required Methods§
fn get_primary_key_value(&self) -> Result<BindValue>
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".