1use bson::oid::ObjectId; 2 3/// Trait which all documents must implement in order to be identified as a document 4pub trait BaseDocument { 5 fn set_id(&mut self, id: Option<ObjectId>); 6 fn get_id(&self) -> Option<ObjectId>; 7}