Skip to main content

BoardAlertRepository

Trait BoardAlertRepository 

Source
pub trait BoardAlertRepository: Send + Sync {
    // Required methods
    fn create<'life0, 'life1, 'async_trait>(
        &'life0 self,
        alert: &'life1 BoardAlert,
    ) -> Pin<Box<dyn Future<Output = Result<BoardAlert, AppError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn find_by_target_meeting<'life0, 'async_trait>(
        &'life0 self,
        meeting_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<BoardAlert>, AppError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Port (interface) pour le repository des alertes du conseil de copropriété (Story 4.7 / #582).

Required Methods§

Source

fn create<'life0, 'life1, 'async_trait>( &'life0 self, alert: &'life1 BoardAlert, ) -> Pin<Box<dyn Future<Output = Result<BoardAlert, AppError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Crée une nouvelle alerte.

Source

fn find_by_target_meeting<'life0, 'async_trait>( &'life0 self, meeting_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<BoardAlert>, AppError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Liste les alertes visibles à une AG donnée (target_meeting_id).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§