Struct aws_sdk_sqs::model::MessageAttributeValue
source · #[non_exhaustive]pub struct MessageAttributeValue { /* private fields */ }
Expand description
The user-specified message attribute value. For string data types, the Value
attribute has the same restrictions on the content as the message body. For more information, see
SendMessage
.
Name
, type
, value
and the message body must not be empty or null. All parts of the message attribute, including Name
, Type
, and Value
, are part of the message size restriction (256 KB or 262,144 bytes).
Implementations§
source§impl MessageAttributeValue
impl MessageAttributeValue
sourcepub fn string_value(&self) -> Option<&str>
pub fn string_value(&self) -> Option<&str>
Strings are Unicode with UTF-8 binary encoding. For a list of code values, see ASCII Printable Characters.
sourcepub fn binary_value(&self) -> Option<&Blob>
pub fn binary_value(&self) -> Option<&Blob>
Binary type attributes can store any binary data, such as compressed data, encrypted data, or images.
sourcepub fn string_list_values(&self) -> Option<&[String]>
pub fn string_list_values(&self) -> Option<&[String]>
Not implemented. Reserved for future use.
sourcepub fn binary_list_values(&self) -> Option<&[Blob]>
pub fn binary_list_values(&self) -> Option<&[Blob]>
Not implemented. Reserved for future use.
sourcepub fn data_type(&self) -> Option<&str>
pub fn data_type(&self) -> Option<&str>
Amazon SQS supports the following logical data types: String
, Number
, and Binary
. For the Number
data type, you must use StringValue
.
You can also append custom labels. For more information, see Amazon SQS Message Attributes in the Amazon SQS Developer Guide.
source§impl MessageAttributeValue
impl MessageAttributeValue
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture MessageAttributeValue
.
Trait Implementations§
source§impl Clone for MessageAttributeValue
impl Clone for MessageAttributeValue
source§fn clone(&self) -> MessageAttributeValue
fn clone(&self) -> MessageAttributeValue
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MessageAttributeValue
impl Debug for MessageAttributeValue
source§impl PartialEq<MessageAttributeValue> for MessageAttributeValue
impl PartialEq<MessageAttributeValue> for MessageAttributeValue
source§fn eq(&self, other: &MessageAttributeValue) -> bool
fn eq(&self, other: &MessageAttributeValue) -> bool
self
and other
values to be equal, and is used
by ==
.