Struct rusoto_sqs::Message
source · [−]pub struct Message {
pub attributes: Option<HashMap<String, String>>,
pub body: Option<String>,
pub md5_of_body: Option<String>,
pub md5_of_message_attributes: Option<String>,
pub message_attributes: Option<HashMap<String, MessageAttributeValue>>,
pub message_id: Option<String>,
pub receipt_handle: Option<String>,
}
Expand description
An Amazon SQS message.
Fields
attributes: Option<HashMap<String, String>>
A map of the attributes requested in ReceiveMessage
to their respective values. Supported attributes:
-
ApproximateReceiveCount
-
ApproximateFirstReceiveTimestamp
-
MessageDeduplicationId
-
MessageGroupId
-
SenderId
-
SentTimestamp
-
SequenceNumber
ApproximateFirstReceiveTimestamp
and SentTimestamp
are each returned as an integer representing the epoch time in milliseconds.
body: Option<String>
The message's contents (not URL-encoded).
md5_of_body: Option<String>
An MD5 digest of the non-URL-encoded message body string.
md5_of_message_attributes: Option<String>
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.
message_attributes: 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 Simple Queue Service Developer Guide.
message_id: Option<String>
A unique identifier for the message. A MessageId
is considered unique across all AWS accounts for an extended period of time.
receipt_handle: Option<String>
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.
Trait Implementations
impl StructuralPartialEq for Message
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more