Trait cqrs_es::AggregateContext
source · pub trait AggregateContext<A>where
A: Aggregate,{
// Required method
fn aggregate(&self) -> &A;
}
Expand description
Returns the aggregate as well as the context around it.
This is used internally within an EventStore
to persist an aggregate instance and events
with the correct context after it has been loaded and modified.