Struct cqrs_es2::MemoryStore [−][src]
pub struct MemoryStore<A: Aggregate> { /* fields omitted */ }
Expand description
Simple memory store only useful for testing purposes
Implementations
Get a shared copy of the events stored within the event store.
Trait Implementations
Load all events for a particular aggregate_id
Load aggregate at current state
fn commit(
&mut self,
events: Vec<A::Event>,
context: MemoryStoreAggregateContext<A>,
metadata: HashMap<String, String>
) -> Result<Vec<EventEnvelope<A>>, AggregateError>
fn commit(
&mut self,
events: Vec<A::Event>,
context: MemoryStoreAggregateContext<A>,
metadata: HashMap<String, String>
) -> Result<Vec<EventEnvelope<A>>, AggregateError>
Commit new events