Struct cqrs_es2::AggregateContext [−][src]
pub struct AggregateContext<C: ICommand, E: IEvent, A: IAggregate<C, E>> {
pub aggregate_id: String,
pub version: i64,
pub payload: A,
// 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.
version: i64
The current version number for this aggregate instance.
payload: A
The current state of the 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>
impl<C: Debug + ICommand, E: Debug + IEvent, A: Debug + IAggregate<C, E>> Debug for AggregateContext<C, E, A>
impl<C: Debug + ICommand, E: Debug + IEvent, A: Debug + IAggregate<C, E>> Debug for AggregateContext<C, E, A>
impl<C: PartialEq + ICommand, E: PartialEq + IEvent, A: PartialEq + IAggregate<C, E>> PartialEq<AggregateContext<C, E, A>> for AggregateContext<C, E, A>
impl<C: PartialEq + ICommand, E: PartialEq + IEvent, A: PartialEq + IAggregate<C, E>> PartialEq<AggregateContext<C, E, A>> for AggregateContext<C, E, A>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<C: ICommand, E: IEvent, A: IAggregate<C, E>> StructuralPartialEq 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