Struct cqrs_es2::QueryContext [−][src]
pub struct QueryContext<C: ICommand, E: IEvent, Q: IQuery<C, E>> {
pub aggregate_id: String,
pub version: i64,
pub payload: Q,
// some fields omitted
}
Expand description
Returns the query and context around it that is needed when committing in a query store implementation.
Fields
aggregate_id: String
The id of the aggregate instance.
version: i64
The current version number for this query instance.
payload: Q
The current state of the query instance.
Implementations
Trait Implementations
impl<C: PartialEq + ICommand, E: PartialEq + IEvent, Q: PartialEq + IQuery<C, E>> PartialEq<QueryContext<C, E, Q>> for QueryContext<C, E, Q>
impl<C: PartialEq + ICommand, E: PartialEq + IEvent, Q: PartialEq + IQuery<C, E>> PartialEq<QueryContext<C, E, Q>> for QueryContext<C, E, Q>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<C, E, Q> RefUnwindSafe for QueryContext<C, E, Q> where
C: RefUnwindSafe,
E: RefUnwindSafe,
Q: RefUnwindSafe,
impl<C, E, Q> Send for QueryContext<C, E, Q>
impl<C, E, Q> Sync for QueryContext<C, E, Q>
impl<C, E, Q> Unpin for QueryContext<C, E, Q> where
C: Unpin,
E: Unpin,
Q: Unpin,
impl<C, E, Q> UnwindSafe for QueryContext<C, E, Q> where
C: UnwindSafe,
E: UnwindSafe,
Q: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more