pub struct ServiceBusEventEnvelope {
pub event_id: String,
pub emitted_at_utc: DateTime<Utc>,
pub service_id: String,
pub instance_id: String,
pub topic: String,
pub message_type: String,
pub correlation_id: i64,
pub causation_id: Option<String>,
pub payload: HashMap<String, Value>,
}Expand description
Canonical event envelope transported over the Basilisk bus.
Fields§
§event_id: StringUnique event identifier.
emitted_at_utc: DateTime<Utc>UTC timestamp when the event was emitted.
service_id: StringOrigin service identifier.
instance_id: StringOrigin service instance identifier.
topic: StringTopic on which the event is routed.
message_type: StringLogical message type.
correlation_id: i64Correlation identifier used to link request/response chains.
causation_id: Option<String>Optional causation event id.
payload: HashMap<String, Value>Free-form JSON payload.
Trait Implementations§
Source§impl Clone for ServiceBusEventEnvelope
impl Clone for ServiceBusEventEnvelope
Source§fn clone(&self) -> ServiceBusEventEnvelope
fn clone(&self) -> ServiceBusEventEnvelope
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 ServiceBusEventEnvelope
impl Debug for ServiceBusEventEnvelope
Source§impl<'de> Deserialize<'de> for ServiceBusEventEnvelope
impl<'de> Deserialize<'de> for ServiceBusEventEnvelope
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 ServiceBusEventEnvelope
impl RefUnwindSafe for ServiceBusEventEnvelope
impl Send for ServiceBusEventEnvelope
impl Sync for ServiceBusEventEnvelope
impl Unpin for ServiceBusEventEnvelope
impl UnsafeUnpin for ServiceBusEventEnvelope
impl UnwindSafe for ServiceBusEventEnvelope
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