Struct aws_sdk_sqs::model::Message
source · #[non_exhaustive]pub struct Message { /* private fields */ }
Expand description
An Amazon SQS message.
Implementations§
source§impl Message
impl Message
sourcepub fn message_id(&self) -> Option<&str>
pub fn message_id(&self) -> Option<&str>
A unique identifier for the message. A MessageId
is considered unique across all Amazon Web Services accounts for an extended period of time.
sourcepub fn receipt_handle(&self) -> Option<&str>
pub fn receipt_handle(&self) -> Option<&str>
An identifier associated with the act of receiving the message. A new receipt handle is returned every time you receive a message. When deleting a message, you provide the last received receipt handle to delete the message.
sourcepub fn md5_of_body(&self) -> Option<&str>
pub fn md5_of_body(&self) -> Option<&str>
An MD5 digest of the non-URL-encoded message body string.
sourcepub fn attributes(&self) -> Option<&HashMap<MessageSystemAttributeName, String>>
pub fn attributes(&self) -> Option<&HashMap<MessageSystemAttributeName, String>>
A map of the attributes requested in
to their respective values. Supported attributes:ReceiveMessage
-
ApproximateReceiveCount
-
ApproximateFirstReceiveTimestamp
-
MessageDeduplicationId
-
MessageGroupId
-
SenderId
-
SentTimestamp
-
SequenceNumber
ApproximateFirstReceiveTimestamp
and SentTimestamp
are each returned as an integer representing the epoch time in milliseconds.
sourcepub fn md5_of_message_attributes(&self) -> Option<&str>
pub fn md5_of_message_attributes(&self) -> Option<&str>
An MD5 digest of the non-URL-encoded message attribute string. You can use this attribute to verify that Amazon SQS received the message correctly. Amazon SQS URL-decodes the message before creating the MD5 digest. For information about MD5, see RFC1321.
sourcepub fn message_attributes(
&self
) -> Option<&HashMap<String, MessageAttributeValue>>
pub fn message_attributes(
&self
) -> Option<&HashMap<String, MessageAttributeValue>>
Each message attribute consists of a Name
, Type
, and Value
. For more information, see Amazon SQS message attributes in the Amazon SQS Developer Guide.