Module traits

Module traits 

Source
Expand description

Traits to orchestrate and maintain the event-sourcing pattern.

Traitsยง

EsEntity
Required trait for all entities to be compatible and recognised by es-entity.
EsEvent
Required trait for all event enums to be compatible and recognised by es-entity.
EsRepo
Required trait for all repositories to be compatible with es-entity and generate functions.
IntoEvents
Required trait for converting new entities into their initial events before persistence.
RetryableInto
TryFromEvents
Required trait for re-constructing entities from their events in chronological order.