framework_cqrs_lib::cqrs::core::daos

Trait WriteOnlyDAO

Source
pub trait WriteOnlyDAO<DBO, ID> {
    // Required methods
    fn insert<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        entity: &'life1 DBO,
        entity_id: &'life2 ID,
    ) -> Pin<Box<dyn Future<Output = ResultErr<ID>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn update<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        id: &'life1 ID,
        entity: &'life2 DBO,
    ) -> Pin<Box<dyn Future<Output = ResultErr<ID>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn insert<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, entity: &'life1 DBO, entity_id: &'life2 ID, ) -> Pin<Box<dyn Future<Output = ResultErr<ID>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn update<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: &'life1 ID, entity: &'life2 DBO, ) -> Pin<Box<dyn Future<Output = ResultErr<ID>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§

Source§

impl<DBO> WriteOnlyDAO<DBO, String> for MongoDAO<DBO>
where DBO: Serialize + Send + Sync,