Struct aws_sdk_sns::model::MessageAttributeValue
source · [−]#[non_exhaustive]pub struct MessageAttributeValue {
pub data_type: Option<String>,
pub string_value: Option<String>,
pub binary_value: Option<Blob>,
}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 Publish.
Name, type, and value must not be empty or null. In addition, the message body should not be empty or null. All parts of the message attribute, including name, type, and value, are included in the message size restriction, which is currently 256 KB (262,144 bytes). For more information, see Amazon SNS message attributes and Publishing to a mobile phone in the Amazon SNS Developer Guide.
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.data_type: Option<String>Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary. For more information, see Message Attribute Data Types.
string_value: Option<String>Strings are Unicode with UTF8 binary encoding. For a list of code values, see ASCII Printable Characters.
binary_value: Option<Blob>Binary type attributes can store any binary data, for example, compressed data, encrypted data, or images.
Implementations
sourceimpl MessageAttributeValue
impl MessageAttributeValue
sourcepub fn data_type(&self) -> Option<&str>
pub fn data_type(&self) -> Option<&str>
Amazon SNS supports the following logical data types: String, String.Array, Number, and Binary. For more information, see Message Attribute Data Types.
sourcepub fn string_value(&self) -> Option<&str>
pub fn string_value(&self) -> Option<&str>
Strings are Unicode with UTF8 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, for example, compressed data, encrypted data, or images.
sourceimpl MessageAttributeValue
impl MessageAttributeValue
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture MessageAttributeValue
Trait Implementations
sourceimpl Clone for MessageAttributeValue
impl Clone for MessageAttributeValue
sourcefn clone(&self) -> MessageAttributeValue
fn clone(&self) -> MessageAttributeValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MessageAttributeValue
impl Debug for MessageAttributeValue
sourceimpl PartialEq<MessageAttributeValue> for MessageAttributeValue
impl PartialEq<MessageAttributeValue> for MessageAttributeValue
sourcefn eq(&self, other: &MessageAttributeValue) -> bool
fn eq(&self, other: &MessageAttributeValue) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &MessageAttributeValue) -> bool
fn ne(&self, other: &MessageAttributeValue) -> bool
This method tests for !=.
impl StructuralPartialEq for MessageAttributeValue
Auto Trait Implementations
impl RefUnwindSafe for MessageAttributeValue
impl Send for MessageAttributeValue
impl Sync for MessageAttributeValue
impl Unpin for MessageAttributeValue
impl UnwindSafe for MessageAttributeValue
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> 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