pub struct CqrsEvent<T = AnyValue> {
pub id: String,
pub event_type: String,
pub seq: u64,
pub cursor: u64,
pub runtime_cursor: CqrsCursor,
pub command_id: String,
pub command_type: String,
pub payload: T,
pub timestamp_ms: u64,
pub aggregate_id: Option<String>,
pub correlation_id: Option<String>,
pub causation_id: Option<String>,
}Expand description
CqrsEvent data container.
Fields§
§id: Stringid field for id.
event_type: Stringevent_type field for event type.
seq: u64seq field for seq.
cursor: u64cursor field for cursor.
runtime_cursor: CqrsCursorruntime_cursor field for runtime cursor.
command_id: Stringcommand_id field for command id.
command_type: Stringcommand_type field for command type.
payload: Tpayload field for payload.
timestamp_ms: u64timestamp_ms field for timestamp ms.
aggregate_id: Option<String>aggregate_id field for aggregate id.
correlation_id: Option<String>correlation_id field for correlation id.
causation_id: Option<String>causation_id field for causation id.
Trait Implementations§
impl<T> StructuralPartialEq for CqrsEvent<T>
Auto Trait Implementations§
impl<T> Freeze for CqrsEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for CqrsEvent<T>where
T: RefUnwindSafe,
impl<T> Send for CqrsEvent<T>where
T: Send,
impl<T> Sync for CqrsEvent<T>where
T: Sync,
impl<T> Unpin for CqrsEvent<T>where
T: Unpin,
impl<T> UnsafeUnpin for CqrsEvent<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CqrsEvent<T>where
T: UnwindSafe,
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