[][src]Trait elephantry::Entity

pub trait Entity: Clone {
    fn from(tuple: &Tuple) -> Self;
fn get(&self, field: &str) -> Option<&dyn ToSql>; }

Required methods

fn from(tuple: &Tuple) -> Self

fn get(&self, field: &str) -> Option<&dyn ToSql>

Loading content...

Implementations on Foreign Types

impl<T: FromSql + ToSql + Clone, S: BuildHasher + Default + Clone> Entity for HashMap<String, T, S>[src]

impl<T: FromSql + ToSql + Clone, S: BuildHasher + Default + Clone> Entity for HashMap<usize, T, S>[src]

Loading content...

Implementors

impl Entity for Column[src]

impl Entity for Relation[src]

impl Entity for Schema[src]

impl<T: ToSql + FromSql + Clone> Entity for T[src]

Loading content...