glats/message

Types

A single message that can be received from or sent to NATS.

pub type Message {
  Message(
    subject: String,
    headers: Map(String, String),
    reply_to: Option(String),
    body: String,
  )
}

Constructors

  • Message(
      subject: String,
      headers: Map(String, String),
      reply_to: Option(String),
      body: String,
    )

Functions

pub fn new_message(subject: String, message: String) -> Message

Constructs a new message.

Search Document