userver: urabbitmq::Envelope Struct Reference
Loading...
Searching...
No Matches
urabbitmq::Envelope Struct Reference

#include <userver/urabbitmq/typedefs.hpp>

Detailed Description

Structure holding an AMQP message body along with some of its metadata fields. This struct is used to pass messages from the end user, hiding the actual AMQP message object implementation.

Definition at line 104 of file typedefs.hpp.

Public Attributes

std::string message
MessageType type
std::optional< std::string > reply_to {}
std::optional< std::string > correlation_id {}
std::optional< std::chrono::milliseconds > expiration {}
std::optional< std::unordered_map< std::string, HeaderValue > > headers {}

Member Data Documentation

◆ correlation_id

std::optional<std::string> urabbitmq::Envelope::correlation_id {}

Definition at line 108 of file typedefs.hpp.

◆ expiration

std::optional<std::chrono::milliseconds> urabbitmq::Envelope::expiration {}

Definition at line 109 of file typedefs.hpp.

◆ headers

std::optional<std::unordered_map<std::string, HeaderValue> > urabbitmq::Envelope::headers {}

Definition at line 110 of file typedefs.hpp.

◆ message

std::string urabbitmq::Envelope::message

Definition at line 105 of file typedefs.hpp.

◆ reply_to

std::optional<std::string> urabbitmq::Envelope::reply_to {}

Definition at line 107 of file typedefs.hpp.

◆ type

MessageType urabbitmq::Envelope::type

Definition at line 106 of file typedefs.hpp.


The documentation for this struct was generated from the following file: