Expand description
Module containing the definition of a Repository, to fetch and store Aggregate Roots from a data store.
If you are looking for the Event-sourced implementation of an Aggregate Repository,
take a look at EventSourced
.
Structs§
- Event
Sourced - An Event-sourced implementation of the Repository interface.
Enums§
- GetError
- All possible errors returned by
Getter::get
. - Save
Error - All possible errors returned by
Saver::save
.
Traits§
- Getter
- Trait used to implement read access to a data store from which to load an aggregate::Root instance, given its id.
- Repository
- A Repository is an object that allows to load and save an Aggregate Root from and to a persistent data store.
- Saver
- Trait used to implement write access to a data store, which can be used to save the latest state of an aggregate::Root instance.