pub struct Event {
pub sequence_no: i64,
pub stream_name: String,
pub event_type: String,
pub payload_json: Value,
pub created_at: DateTime<Utc>,
}Expand description
Represents an immutable event stored within a durable stream log.
Fields§
§sequence_no: i64Monotonically increasing 1-based sequence number within the stream.
stream_name: StringName of the target stream log (e.g., “orders”, “audit_logs”).
event_type: StringDomain-specific identifier for the event type (e.g., “order_created”).
payload_json: ValueJSON payload content of the event.
created_at: DateTime<Utc>Timestamp when the event was appended to the stream log.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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