pub struct StoredEvent {
pub sequence: u64,
pub stream_id: String,
pub event_type: String,
pub payload: Value,
pub timestamp_ms: u64,
}Expand description
A stored domain event.
Fields§
§sequence: u64Monotonically increasing sequence number.
stream_id: StringLogical stream this event belongs to.
event_type: StringEvent type name.
payload: ValueArbitrary payload.
timestamp_ms: u64Wall-clock time (ms since epoch).
Trait Implementations§
Source§impl Clone for StoredEvent
impl Clone for StoredEvent
Source§fn clone(&self) -> StoredEvent
fn clone(&self) -> StoredEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StoredEvent
impl Debug for StoredEvent
Source§impl<'de> Deserialize<'de> for StoredEvent
impl<'de> Deserialize<'de> for StoredEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StoredEvent
impl RefUnwindSafe for StoredEvent
impl Send for StoredEvent
impl Sync for StoredEvent
impl Unpin for StoredEvent
impl UnsafeUnpin for StoredEvent
impl UnwindSafe for StoredEvent
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