pub trait Model<'a>: TryFrom<&'a Row<'a>> {
// Required methods
fn create_table(_: &Connection) -> Result<usize>;
fn drop_table(_: &Connection) -> Result<usize>;
fn insert(self, _: &Connection) -> Result<usize>;
fn into_params(self) -> IntoIter<Box<dyn ToSql>>;
}
Required Methods§
fn create_table(_: &Connection) -> Result<usize>
fn drop_table(_: &Connection) -> Result<usize>
fn insert(self, _: &Connection) -> Result<usize>
fn into_params(self) -> IntoIter<Box<dyn ToSql>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.