pub struct StoredEvent<Id, Pos, M> {
pub aggregate_kind: String,
pub aggregate_id: Id,
pub kind: String,
pub position: Pos,
pub data: Vec<u8>,
pub metadata: M,
}Expand description
Event materialized from the store, with position.
Generic parameters:
Id: Aggregate identifier typePos: Position type for ordering (()for no ordering,u64for global sequence, etc.)M: Metadata type (defaults toEventMetadata)
Fields§
§aggregate_kind: String§aggregate_id: Id§kind: String§position: Pos§data: Vec<u8>§metadata: MTrait Implementations§
Source§impl<Id: Clone, Pos: Clone, M: Clone> Clone for StoredEvent<Id, Pos, M>
impl<Id: Clone, Pos: Clone, M: Clone> Clone for StoredEvent<Id, Pos, M>
Source§fn clone(&self) -> StoredEvent<Id, Pos, M>
fn clone(&self) -> StoredEvent<Id, Pos, M>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Id, Pos, M> Freeze for StoredEvent<Id, Pos, M>
impl<Id, Pos, M> RefUnwindSafe for StoredEvent<Id, Pos, M>
impl<Id, Pos, M> Send for StoredEvent<Id, Pos, M>
impl<Id, Pos, M> Sync for StoredEvent<Id, Pos, M>
impl<Id, Pos, M> Unpin for StoredEvent<Id, Pos, M>
impl<Id, Pos, M> UnwindSafe for StoredEvent<Id, Pos, M>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)