pub trait ToRowStatic {
    // Required methods
    fn insert_columns() -> &'static str;
    fn insert_values() -> &'static str;
    fn update_columns() -> &'static str;
    fn params_len() -> usize;
    fn params(&self) -> impl ExactSizeIterator<Item = &(dyn ToSql + Sync)>;
}Required Methods§
Sourcefn insert_columns() -> &'static str
 
fn insert_columns() -> &'static str
should return something like “id”, “name”, “email”
Sourcefn insert_values() -> &'static str
 
fn insert_values() -> &'static str
should return something like $1, $2, $3
Sourcefn update_columns() -> &'static str
 
fn update_columns() -> &'static str
should return something like “id” = $1, “name” = $2
fn params_len() -> usize
fn params(&self) -> impl ExactSizeIterator<Item = &(dyn ToSql + Sync)>
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.