Skip to main content

AuditLog

Trait AuditLog 

Source
pub trait AuditLog: Send + Sync {
    // Required methods
    fn audit_entries(&self, query: &AuditQuery) -> Result<AuditPage>;
    fn record(&self, actor: &str, action: &str, detail: &str);
}
Expand description

Who changed what in accounts, secrets and settings, for admins to read.

Required Methods§

Source

fn audit_entries(&self, query: &AuditQuery) -> Result<AuditPage>

Entries newest first, from before query.before and matching its filters.

Source

fn record(&self, actor: &str, action: &str, detail: &str)

Record a change made outside the account store, such as to the prompts.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§