[−][src]Struct postgres_es::PostgresStoreAggregateContext
Holds context for a pure event store implementation for MemStore
Fields
aggregate_id: StringThe aggregate ID of the aggregate instance that has been loaded.
aggregate: AThe current state of the aggregate instance.
current_sequence: usizeThe last committed event sequence number for this aggregate instance.
Trait Implementations
impl<A> AggregateContext<A> for PostgresStoreAggregateContext<A> where
A: Aggregate, [src]
A: Aggregate,
impl<A, E> EventStore<A, E, PostgresStoreAggregateContext<A>> for PostgresStore<A, E> where
A: Aggregate,
E: DomainEvent<A>, [src]
A: Aggregate,
E: DomainEvent<A>,
pub fn load(&self, aggregate_id: &str) -> Vec<EventEnvelope<A, E>>[src]
pub fn load_aggregate(
&self,
aggregate_id: &str
) -> PostgresStoreAggregateContext<A>[src]
&self,
aggregate_id: &str
) -> PostgresStoreAggregateContext<A>
pub fn commit(
&self,
events: Vec<E>,
context: PostgresStoreAggregateContext<A>,
metadata: HashMap<String, String>
) -> Result<Vec<EventEnvelope<A, E>>, AggregateError>[src]
&self,
events: Vec<E>,
context: PostgresStoreAggregateContext<A>,
metadata: HashMap<String, String>
) -> Result<Vec<EventEnvelope<A, E>>, AggregateError>
pub fn wrap_events(
&self,
aggregate_id: &str,
current_sequence: usize,
resultant_events: Vec<E, Global>,
base_metadata: HashMap<String, String, RandomState>
) -> Vec<EventEnvelope<A, E>, Global>[src]
&self,
aggregate_id: &str,
current_sequence: usize,
resultant_events: Vec<E, Global>,
base_metadata: HashMap<String, String, RandomState>
) -> Vec<EventEnvelope<A, E>, Global>
Auto Trait Implementations
impl<A> RefUnwindSafe for PostgresStoreAggregateContext<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for PostgresStoreAggregateContext<A>
impl<A> Sync for PostgresStoreAggregateContext<A>
impl<A> Unpin for PostgresStoreAggregateContext<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for PostgresStoreAggregateContext<A> where
A: UnwindSafe,
A: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,