Skip to main content

export

Function export 

Source
pub async fn export(
    pool: &PgPool,
    actor: &Actor,
    filter: &AuditFilter,
) -> AppResult<(Vec<AuditEntry>, bool)>
Expand description

The audit log as an export (#152 step 8): the entries of list with the same filter, visibility and redaction, newest first, at most EXPORT_MAX. Returns the entries and whether more matched.

§Invariants

  • Permission: administrators only (403).
  • Audit: audit.export with the filter and the number of entries – exporting the log is itself on record.