Trait fire_postgres::row::ToRowStatic
source · 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)>
Object Safety§
This trait is not object safe.