pub struct ProcessEvent<T = AnyValue> {
pub id: String,
pub event_type: String,
pub seq: u64,
pub cursor: u64,
pub command_id: String,
pub command_type: String,
pub payload: T,
pub timestamp_ms: u64,
pub process_id: Option<String>,
pub correlation_id: Option<String>,
pub causation_id: Option<String>,
}Expand description
ProcessEvent 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.
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.
process_id: Option<String>process_id field for process id.
correlation_id: Option<String>correlation_id field for correlation id.
causation_id: Option<String>causation_id field for causation id.
Trait Implementations§
Source§impl<T: Clone> Clone for ProcessEvent<T>
impl<T: Clone> Clone for ProcessEvent<T>
Source§fn clone(&self) -> ProcessEvent<T>
fn clone(&self) -> ProcessEvent<T>
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<T: Debug> Debug for ProcessEvent<T>
impl<T: Debug> Debug for ProcessEvent<T>
Source§impl<T: PartialEq> PartialEq for ProcessEvent<T>
impl<T: PartialEq> PartialEq for ProcessEvent<T>
impl<T> StructuralPartialEq for ProcessEvent<T>
Auto Trait Implementations§
impl<T> Freeze for ProcessEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for ProcessEvent<T>where
T: RefUnwindSafe,
impl<T> Send for ProcessEvent<T>where
T: Send,
impl<T> Sync for ProcessEvent<T>where
T: Sync,
impl<T> Unpin for ProcessEvent<T>where
T: Unpin,
impl<T> UnsafeUnpin for ProcessEvent<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ProcessEvent<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