Trait mongo_data::repository::base_repository::Repository
source · pub trait Repository<T: BaseDocument + Debug + Serialize + for<'de> Deserialize<'de>> {
// Required method
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
entity: T,
ctx: Option<&'life1 Context>
) -> Pin<Box<dyn Future<Output = Result<ObjectId, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}