Skip to main content

Module repository

Module repository 

Source
Expand description

The command side: every change goes through here.

The repository turns a command into an Event, projects the next state, validates it (structure, extensions, relation rules, reference targets), and commits it with optimistic concurrency and idempotency. It does not decide who may do what: authorization is the caller’s responsibility (see crate::access for the visibility primitives).

Structs§

Committed
Result of a command.
ManualClock
A manually advanced clock for tests and fixtures.
Meta
Metadata common to every command.
Repository
SystemClock

Traits§

Clock
Source of “now”. Injected so tests are deterministic.