Trait Model
meshuganah
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); }
const COLLECTION_NAME: &'static str
fn get_id(&self) -> Option<ObjectId>
fn set_id(&mut self, id: ObjectId)