pub trait Insertable: Sized {
type Database: Database;
// Required methods
fn table_name() -> &'static str;
fn insert_columns() -> Vec<&'static str>;
fn bind_fields<'q, Q>(&'q self, q: Q) -> Q
where Q: QueryBindExt<'q, Self::Database>;
}
Required Associated Types§
Required Methods§
fn table_name() -> &'static str
fn insert_columns() -> Vec<&'static str>
fn bind_fields<'q, Q>(&'q self, q: Q) -> Qwhere
Q: QueryBindExt<'q, Self::Database>,
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.