Trait openvet_storage::database::Insert
source · pub trait Insert: Serialize {
// Required method
fn table(&self) -> &str;
// Provided methods
fn insert_or_ignore(
&self,
connection: &Connection,
) -> Result<i64, InsertError> { ... }
fn insert_or_update(
&self,
connection: &Connection,
) -> Result<i64, InsertError> { ... }
fn insert(&self, connection: &Connection) -> Result<i64, InsertError> { ... }
fn column(&self, name: &str) -> Option<&str> { ... }
}Required Methods§
Provided Methods§
fn insert_or_ignore(&self, connection: &Connection) -> Result<i64, InsertError>
fn insert_or_update(&self, connection: &Connection) -> Result<i64, InsertError>
fn insert(&self, connection: &Connection) -> Result<i64, InsertError>
fn column(&self, name: &str) -> Option<&str>
Object Safety§
This trait is not object safe.