Trait repos::Entity
[−]
[src]
pub trait Entity { fn convert(row: Row) -> Self; fn get_fields() -> Vec<&'static str> { ... } fn get_values<'a>(
&'a self,
_: &Vec<&'static str>
) -> BTreeMap<&'a str, &'a ToSql> { ... } fn get_table_name() -> &'static str { ... } fn get_id(&self) -> i32 { ... } }
Required Methods
Provided Methods
fn get_fields() -> Vec<&'static str>
fn get_values<'a>(
&'a self,
_: &Vec<&'static str>
) -> BTreeMap<&'a str, &'a ToSql>
&'a self,
_: &Vec<&'static str>
) -> BTreeMap<&'a str, &'a ToSql>
fn get_table_name() -> &'static str
fn get_id(&self) -> i32
Implementors
impl<T: FromSql> Entity for T