use cqrs_es2::{
Aggregate,
AggregateContext,
};
pub struct PostgresStoreAggregateContext<A: Aggregate> {
pub aggregate_id: String,
pub aggregate: A,
pub current_sequence: usize,
}
impl<A: Aggregate> AggregateContext<A>
for PostgresStoreAggregateContext<A>
{
fn aggregate(&self) -> &A {
&self.aggregate
}
}