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.

Required Methods§

source

fn aggregate(&self) -> &A

The aggregate instance with all state loaded.

Implementors§