Struct aws_sdk_sqs::types::MessageSystemAttributeValue
source · #[non_exhaustive]pub struct MessageSystemAttributeValue {
pub string_value: Option<String>,
pub binary_value: Option<Blob>,
pub string_list_values: Option<Vec<String>>,
pub binary_list_values: Option<Vec<Blob>>,
pub data_type: String,
}
Expand description
The user-specified message system 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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.string_value: Option<String>
Strings are Unicode with UTF-8 binary encoding. For a list of code values, see ASCII Printable Characters.
binary_value: Option<Blob>
Binary type attributes can store any binary data, such as compressed data, encrypted data, or images.
string_list_values: Option<Vec<String>>
Not implemented. Reserved for future use.
binary_list_values: Option<Vec<Blob>>
Not implemented. Reserved for future use.
data_type: String
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.
Implementations§
source§impl MessageSystemAttributeValue
impl MessageSystemAttributeValue
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) -> &[String]
pub fn string_list_values(&self) -> &[String]
Not implemented. Reserved for future use.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .string_list_values.is_none()
.
sourcepub fn binary_list_values(&self) -> &[Blob]
pub fn binary_list_values(&self) -> &[Blob]
Not implemented. Reserved for future use.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .binary_list_values.is_none()
.
sourcepub fn data_type(&self) -> &str
pub fn data_type(&self) -> &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 MessageSystemAttributeValue
impl MessageSystemAttributeValue
sourcepub fn builder() -> MessageSystemAttributeValueBuilder
pub fn builder() -> MessageSystemAttributeValueBuilder
Creates a new builder-style object to manufacture MessageSystemAttributeValue
.
Trait Implementations§
source§impl Clone for MessageSystemAttributeValue
impl Clone for MessageSystemAttributeValue
source§fn clone(&self) -> MessageSystemAttributeValue
fn clone(&self) -> MessageSystemAttributeValue
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MessageSystemAttributeValue
impl Debug for MessageSystemAttributeValue
source§impl PartialEq for MessageSystemAttributeValue
impl PartialEq for MessageSystemAttributeValue
source§fn eq(&self, other: &MessageSystemAttributeValue) -> bool
fn eq(&self, other: &MessageSystemAttributeValue) -> bool
self
and other
values to be equal, and is used
by ==
.