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 set_header(message: Message, key: String, value: String) -> Message
Sets a header in a message.
pub fn set_reply_to(message: Message, reply_to: String) -> Message
Sets the reply_to subject of a message.