Trait elephantry::Entity [−][src]
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
fn from(tuple: &Tuple<'_>) -> Self
[src]
Create a new struct from SQL result.
fn get(&self, field: &str) -> Option<&dyn ToSql>
[src]
Get the value of the field named field
.