Trait lexa_framework::database::ModelInterface
source · pub trait ModelInterface {
type Entity: Serialize + DeserializeOwned + Sync + Send;
type Database;
// Required methods
fn new(database: Self::Database) -> Self
where Self: Sized;
fn database(&self) -> &Self::Database;
fn table() -> &'static str;
}