Skip to main content

SecurityStore

Trait SecurityStore 

Source
pub trait SecurityStore: Send + Sync {
    // Required methods
    fn create_quarantine_case<'life0, 'life1, 'async_trait>(
        &'life0 self,
        c: &'life1 QuarantineCase,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_quarantine_case<'life0, 'async_trait>(
        &'life0 self,
        id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Option<QuarantineCase>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_quarantine_case_by_case_id<'life0, 'async_trait>(
        &'life0 self,
        case_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Option<QuarantineCase>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn resolve_quarantine_case<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        id: Uuid,
        status: QuarantineStatus,
        resolution: Option<&'life1 str>,
        resolved_at: i64,
        vendor_note: Option<&'life2 str>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn create_security_event<'life0, 'life1, 'async_trait>(
        &'life0 self,
        e: &'life1 SecurityEvent,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_security_events_for_license<'life0, 'async_trait>(
        &'life0 self,
        license_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<SecurityEvent>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn mark_security_event_reviewed<'life0, 'life1, 'async_trait>(
        &'life0 self,
        id: i64,
        reviewed_by: &'life1 str,
        reviewed_at: i64,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn create_revocation_record<'life0, 'life1, 'async_trait>(
        &'life0 self,
        r: &'life1 RevocationRecord,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_revocation_record<'life0, 'async_trait>(
        &'life0 self,
        license_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Option<RevocationRecord>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_email_log_entry<'life0, 'life1, 'async_trait>(
        &'life0 self,
        e: &'life1 EmailLogEntry,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list_email_log_for_license<'life0, 'async_trait>(
        &'life0 self,
        license_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<EmailLogEntry>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn create_quarantine_case<'life0, 'life1, 'async_trait>( &'life0 self, c: &'life1 QuarantineCase, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

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

Source

fn get_quarantine_case_by_case_id<'life0, 'async_trait>( &'life0 self, case_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<QuarantineCase>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn resolve_quarantine_case<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: Uuid, status: QuarantineStatus, resolution: Option<&'life1 str>, resolved_at: i64, vendor_note: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn create_security_event<'life0, 'life1, 'async_trait>( &'life0 self, e: &'life1 SecurityEvent, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_security_events_for_license<'life0, 'async_trait>( &'life0 self, license_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<SecurityEvent>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn mark_security_event_reviewed<'life0, 'life1, 'async_trait>( &'life0 self, id: i64, reviewed_by: &'life1 str, reviewed_at: i64, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn create_revocation_record<'life0, 'life1, 'async_trait>( &'life0 self, r: &'life1 RevocationRecord, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_revocation_record<'life0, 'async_trait>( &'life0 self, license_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<RevocationRecord>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn create_email_log_entry<'life0, 'life1, 'async_trait>( &'life0 self, e: &'life1 EmailLogEntry, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn list_email_log_for_license<'life0, 'async_trait>( &'life0 self, license_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<EmailLogEntry>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§