pub struct BusEvent {
pub topic: String,
pub source: String,
pub payload: Value,
pub timestamp_ms: u64,
pub correlation_id: Option<String>,
pub metadata: HashMap<String, String>,
}Expand description
An event published on the bus.
Fields§
§topic: StringEvent topic (e.g. “task.completed”, “workflow.error”).
source: StringSource identifier (task ID, workflow ID, etc.).
payload: ValueEvent payload as JSON value.
timestamp_ms: u64Timestamp in milliseconds since epoch.
correlation_id: Option<String>Optional correlation ID for tracing related events.
metadata: HashMap<String, String>Event metadata.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BusEvent
impl<'de> Deserialize<'de> for BusEvent
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 BusEvent
impl RefUnwindSafe for BusEvent
impl Send for BusEvent
impl Sync for BusEvent
impl Unpin for BusEvent
impl UnsafeUnpin for BusEvent
impl UnwindSafe for BusEvent
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