Struct persist_es::SnapshotStoreAggregateContext [−][src]
pub struct SnapshotStoreAggregateContext<A> where
A: Aggregate, {
pub aggregate_id: String,
pub aggregate: A,
pub current_sequence: usize,
pub current_snapshot: usize,
}
Expand description
Holds context for the snapshot-sourced implementation PostgresSnapshotStore.
This is only used internally within the EventStore
.
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.
current_snapshot: usize
The last committed snapshot version for this aggregate instance.
Trait Implementations
impl<A: PartialEq> PartialEq<SnapshotStoreAggregateContext<A>> for SnapshotStoreAggregateContext<A> where
A: Aggregate,
impl<A: PartialEq> PartialEq<SnapshotStoreAggregateContext<A>> for SnapshotStoreAggregateContext<A> where
A: Aggregate,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.