[−][src]Trait elephantry::Entity
Trait to translate SQL row to struct and vice versa.
You probably should use the Entity
derive macro instead of writing the
impl by yourself.
Required methods
pub fn from(tuple: &Tuple<'_>) -> Self
[src]
Create a new struct from SQL result.
pub fn get(&self, field: &str) -> Option<&dyn ToSql>
[src]
Get the value of the field named field
.