Modules
adapter`Adapter`: where logs are stored, and the adapters that ship.errorThe error type shared by `Audit`(crate::Audit) and every adapter.log`Log`: one audit entry, as its adapter stored it.queryQueries over audit logs: `utopia_query::Query`, with audit's lenient factories and the legacy `TYPE_*` method names.schemaThe schema of audit logs shared by the SQL adapters: their attributes, indexes and column definitions, and how a resource path splits into its type, id and parent.
Contents
Structs
AuditThe audit log manager: records logs and reads them back through an `Adapter`.PageA page of logs: how many, from where, oldest or newest first.RangeA time window: logs after `after` and before `before` (both exclusive on ClickHouse and on single bounds; `between` is inclusive when both are given).use utopia_audit::Audit;Rust
pub struct Audit<A: Adapter>The audit log manager: records logs and reads them back through an
Adapter.
A is the adapter type, so calls dispatch statically; Audit<Box<dyn Adapter>> (or Arc) takes any adapter chosen at run time, and &A
borrows one.
use utopia_audit::Page;Rust
pub struct PageA page of logs: how many, from where, oldest or newest first.
Also implements
Default.use utopia_audit::Range;Rust
pub struct Range<'a>A time window: logs after after and before before (both exclusive
on ClickHouse and on single bounds; between is inclusive when both are
given).