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

The aggregate instance with all state loaded.

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.