Skip to main content

IgnisModel

Trait IgnisModel 

Source
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§

Source

const TABLE: &'static str

Source

const PK: &'static str

Source

const SCHEMA: Option<&'static str>

Source

const FULL_TABLE_NAME: &'static str

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§