Type Alias eventually::command::Envelope

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

A Command represents an intent by an Actor (e.g. a User, or a System) to mutate the state of the system.

In an event-sourced system, a Command is represented as a [Message].

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.