Skip to main content

BrokerMessage

A wrapper for messages that includes metadata for processing.

Structure

Fields

Creating messages

Messages are automatically created when publishing:

Accessing message data


Payload requirements

Your message payload type must implement:
  • Clone
  • serde::Serialize
  • serde::Deserialize

Example payload

Complex payload


InternalBrokerMessage

Internal message representation used by broker implementations. You typically don’t interact with this directly.

BrokerConfig

Configuration options for broker behavior.

Default values


BrokerType

Enum representing supported broker types.

Broker trait

The Broker trait defines the interface that all broker implementations must satisfy. This is internal to Broccoli but useful for understanding the abstraction.