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§
Sourcefn 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 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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".