pub struct Event {
pub event_id: String,
pub topic_name: String,
pub topic_key: Option<String>,
pub seq: i64,
pub actor_json: Value,
pub payload_json: Value,
pub created_at: DateTime<Utc>,
}Expand description
Published event with payload and metadata.
Fields§
§event_id: StringUnique event ID (UUID).
topic_name: StringTopic name.
topic_key: Option<String>Key value if keyed topic.
seq: i64Sequence number per topic/key.
actor_json: ValueCaptured identity (actor JSON).
payload_json: ValueSerialized payload.
created_at: DateTime<Utc>When the event was published.
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
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