[][src]Trait meshuganah::Model

pub trait Model where
    Self: Serialize + DeserializeOwned + Send + Sync
{ const COLLECTION_NAME: &'static str; fn get_id(&self) -> Option<ObjectId>;
fn set_id(&mut self, id: ObjectId); }

Associated Constants

const COLLECTION_NAME: &'static str

Loading content...

Required methods

fn get_id(&self) -> Option<ObjectId>

fn set_id(&mut self, id: ObjectId)

Loading content...

Implementors

Loading content...