Skip to main content

SqlxAuditStore

Trait SqlxAuditStore 

Source
pub trait SqlxAuditStore<B>: Send + Sync{
    // Required methods
    fn record_decision_audit<'life0, 'life1, 'async_trait>(
        &'life0 self,
        entry: &'life1 AuditEntry,
    ) -> Pin<Box<dyn Future<Output = Result<i64, SqlxAuditError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn decision_audit_records<'life0, 'async_trait>(
        &'life0 self,
        after_id: Option<i64>,
        limit: i64,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<DecisionAuditRecord>, SqlxAuditError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

SQLx-side decision audit contract.

Required Methods§

Source

fn record_decision_audit<'life0, 'life1, 'async_trait>( &'life0 self, entry: &'life1 AuditEntry, ) -> Pin<Box<dyn Future<Output = Result<i64, SqlxAuditError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Records one authorization decision.

Source

fn decision_audit_records<'life0, 'async_trait>( &'life0 self, after_id: Option<i64>, limit: i64, ) -> Pin<Box<dyn Future<Output = Result<Vec<DecisionAuditRecord>, SqlxAuditError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reads decision audit records in stable id order.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§