SecurityIncidentRepository

Trait SecurityIncidentRepository 

Source
pub trait SecurityIncidentRepository: Send + Sync {
    // Required methods
    fn create<'life0, 'life1, 'async_trait>(
        &'life0 self,
        incident: &'life1 SecurityIncident,
    ) -> Pin<Box<dyn Future<Output = Result<SecurityIncident, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn find_by_id<'life0, 'async_trait>(
        &'life0 self,
        id: Uuid,
        organization_id: Option<Uuid>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<SecurityIncident>, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn find_all<'life0, 'async_trait>(
        &'life0 self,
        organization_id: Option<Uuid>,
        filters: SecurityIncidentFilters,
    ) -> Pin<Box<dyn Future<Output = Result<(Vec<SecurityIncident>, i64), String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn report_to_apd<'life0, 'async_trait>(
        &'life0 self,
        id: Uuid,
        organization_id: Option<Uuid>,
        apd_reference_number: String,
        investigation_notes: Option<String>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<SecurityIncident>, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn find_overdue<'life0, 'async_trait>(
        &'life0 self,
        organization_id: Option<Uuid>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<SecurityIncident>, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Port (interface) pour le repository des incidents de sécurité (GDPR Art. 33)

Required Methods§

Source

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

Source

fn find_by_id<'life0, 'async_trait>( &'life0 self, id: Uuid, organization_id: Option<Uuid>, ) -> Pin<Box<dyn Future<Output = Result<Option<SecurityIncident>, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn find_all<'life0, 'async_trait>( &'life0 self, organization_id: Option<Uuid>, filters: SecurityIncidentFilters, ) -> Pin<Box<dyn Future<Output = Result<(Vec<SecurityIncident>, i64), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn report_to_apd<'life0, 'async_trait>( &'life0 self, id: Uuid, organization_id: Option<Uuid>, apd_reference_number: String, investigation_notes: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<Option<SecurityIncident>, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn find_overdue<'life0, 'async_trait>( &'life0 self, organization_id: Option<Uuid>, ) -> Pin<Box<dyn Future<Output = Result<Vec<SecurityIncident>, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§