pub struct EventMessage<T> {
pub id: String,
pub type_: String,
pub payload: T,
pub key: Option<String>,
pub subject_id: Option<String>,
pub correlation_id: Option<String>,
pub causation_id: Option<String>,
pub occurred_at_ms: Option<u64>,
pub actor: Option<String>,
pub evidence_refs: Vec<String>,
pub schema: Option<JsonSchema>,
pub metadata: Option<BTreeMap<String, JsonValue>>,
}Expand description
Passive domain event vocabulary for messageBus/eventFlow composition (D329).
Fields§
§id: Stringid field for id.
type_: Stringtype_ field for type.
payload: Tpayload field for payload.
key: Option<String>key field for key.
subject_id: Option<String>subject_id field for subject id.
correlation_id: Option<String>correlation_id field for correlation id.
causation_id: Option<String>causation_id field for causation id.
occurred_at_ms: Option<u64>occurred_at_ms field for occurred at ms.
actor: Option<String>actor field for actor.
evidence_refs: Vec<String>evidence_refs field for evidence refs.
schema: Option<JsonSchema>schema field for schema.
metadata: Option<BTreeMap<String, JsonValue>>metadata field for metadata.
Trait Implementations§
Source§impl<T: Clone> Clone for EventMessage<T>
impl<T: Clone> Clone for EventMessage<T>
Source§fn clone(&self) -> EventMessage<T>
fn clone(&self) -> EventMessage<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for EventMessage<T>
impl<T: Debug> Debug for EventMessage<T>
Source§impl<T: PartialEq> PartialEq for EventMessage<T>
impl<T: PartialEq> PartialEq for EventMessage<T>
impl<T> StructuralPartialEq for EventMessage<T>
Auto Trait Implementations§
impl<T> Freeze for EventMessage<T>where
T: Freeze,
impl<T> RefUnwindSafe for EventMessage<T>where
T: RefUnwindSafe,
impl<T> Send for EventMessage<T>where
T: Send,
impl<T> Sync for EventMessage<T>where
T: Sync,
impl<T> Unpin for EventMessage<T>where
T: Unpin,
impl<T> UnsafeUnpin for EventMessage<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for EventMessage<T>where
T: UnwindSafe,
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