1 2 3 4 5 6 7 8 9 10 11 12
use super::*; pub trait InsertStatement { fn insert_stmt(&self) -> Result<String>; } pub trait Insert<C, R, T> where C: Connection<R>, R: Row, { fn insert(&self, conn: &mut C, object: &T) -> Result<()>; }