Skip to main content

Module events

Module events 

Source
Expand description

Manage events and related operations for event-sourcing.

Structs§

EntityEvents
A Vec wrapper that manages event-stream of an entity with helpers for event-sourcing operations
EventWithContext
GenericEvent
Represent the events in raw deserialized format when loaded from database
PersistedEvent
Strongly-typed event wrapper with metadata for successfully stored events.
SnapshotGenericEvent
Row type of every loader on a snapshot repo (aliased as Repo__DbEvent there). GenericEvent<Id> itself is untouched — every existing repo’s query_as! and .sqlx entry stay as is; this confines the wider row shape to snapshot repos only.

Type Aliases§

LastPersisted
An alias for iterator over the persisted events