Type Alias eventually::event::Envelope

source ·
pub type Envelope<T> = Envelope<T>;
Expand description

An Event is a Message carring the information about a Domain Event, an occurrence in the system lifetime that is relevant for the Domain that is being implemented.

Aliased Type§

struct Envelope<T> {
    pub message: T,
    pub metadata: HashMap<String, String>,
}

Fields§

§message: T

The message payload.

§metadata: HashMap<String, String>

Optional metadata to provide additional context to the message.