Skip to main content

Module audit

Module audit 

Source
Expand description

The audit_log model: append, read back, purge by age.

Deliberately narrow. There is no setter of any kind and no update: a row is INSERTed once and thereafter only read or deleted wholesale by AuditEntry::cleanup. That is the whole reason the table has no foreign keys either — see the header comment in migrations/20260809120000_add_audit_log.sql.

Structs§

AuditEntry
One stored audit row.
AuditQuery
The filters and page window AuditEntry::search applies.

Functions§

actor_kinds
The actor_kind values, for the CLI help and the page filter. Mirrors crate::audit::ActorKind; the CHECK in the migration is the authority.