pub struct QueryContext<C: ICommand, E: IEvent, Q: IQuery<C, E>> {
pub aggregate_id: String,
pub version: i64,
pub payload: Q,
/* private fields */
}Expand description
Returns the query and context around it that is needed when committing in a query store implementation.
Fields§
§aggregate_id: StringThe id of the aggregate instance.
version: i64The current version number for this query instance.
payload: QThe current state of the query instance.
Implementations§
Trait Implementations§
Source§impl<C: Clone + ICommand, E: Clone + IEvent, Q: Clone + IQuery<C, E>> Clone for QueryContext<C, E, Q>
impl<C: Clone + ICommand, E: Clone + IEvent, Q: Clone + IQuery<C, E>> Clone for QueryContext<C, E, Q>
Source§fn clone(&self) -> QueryContext<C, E, Q>
fn clone(&self) -> QueryContext<C, E, Q>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C: Debug + ICommand, E: Debug + IEvent, Q: Debug + IQuery<C, E>> Debug for QueryContext<C, E, Q>
impl<C: Debug + ICommand, E: Debug + IEvent, Q: Debug + IQuery<C, E>> Debug for QueryContext<C, E, Q>
Source§impl<C: PartialEq + ICommand, E: PartialEq + IEvent, Q: PartialEq + IQuery<C, E>> PartialEq for QueryContext<C, E, Q>
impl<C: PartialEq + ICommand, E: PartialEq + IEvent, Q: PartialEq + IQuery<C, E>> PartialEq for QueryContext<C, E, Q>
impl<C: ICommand, E: IEvent, Q: IQuery<C, E>> StructuralPartialEq for QueryContext<C, E, Q>
Auto Trait Implementations§
impl<C, E, Q> Freeze for QueryContext<C, E, Q>where
Q: Freeze,
impl<C, E, Q> RefUnwindSafe for QueryContext<C, E, Q>
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>
impl<C, E, Q> UnwindSafe for QueryContext<C, E, Q>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more