Skip to main content

Module event

Module event 

Source
Expand description

Append-only, attributable record history.

Every change to a record is an Event with a per-record, gap-free sequence (1, 2, 3…). The current crate::model::Record is a projection of those events. Events are never edited or deleted, with one exception: EventKind::Redacted scrubs the redacted values out of earlier events so personal data can actually be removed (ADR 0006).

Structs§

Event

Enums§

Change
A single field-level change.
EventKind
FieldPath
An addressable, redactable value in a record.

Constants§

REDACTED
Placeholder that replaces redacted text.

Functions§

redact_record
Remove the values at paths from a record in place.
scrub_event
Scrub redacted values out of an earlier event (used by stores when a EventKind::Redacted event is committed).