Struct cqrs_es2::AggregateContext [−][src]
pub struct AggregateContext<C: ICommand, E: IEvent, A: IAggregate<C, E>> { pub aggregate_id: String, pub aggregate: A, pub current_sequence: usize, // some fields omitted }
Expand description
Returns the aggregate and context around it that is needed when committing events in an event store implementation.
Fields
aggregate_id: String
The aggregate ID of the aggregate instance that has been loaded.
aggregate: A
The current state of the aggregate instance.
current_sequence: usize
The last committed event sequence number for this aggregate instance.
Implementations
Trait Implementations
impl<C: Clone + ICommand, E: Clone + IEvent, A: Clone + IAggregate<C, E>> Clone for AggregateContext<C, E, A>
impl<C: Clone + ICommand, E: Clone + IEvent, A: Clone + IAggregate<C, E>> Clone for AggregateContext<C, E, A>
Auto Trait Implementations
impl<C, E, A> RefUnwindSafe for AggregateContext<C, E, A> where
A: RefUnwindSafe,
C: RefUnwindSafe,
E: RefUnwindSafe,
impl<C, E, A> Send for AggregateContext<C, E, A>
impl<C, E, A> Sync for AggregateContext<C, E, A>
impl<C, E, A> Unpin for AggregateContext<C, E, A> where
A: Unpin,
C: Unpin,
E: Unpin,
impl<C, E, A> UnwindSafe for AggregateContext<C, E, A> where
A: UnwindSafe,
C: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self