Struct aws_lambda_events::event::sns::MessageAttribute
source · pub struct MessageAttribute {
pub data_type: String,
pub value: String,
}
Expand description
Structured metadata items (such as timestamps, geospatial data, signatures, and identifiers) about the message.
Message attributes are optional and separate from—but are sent together with—the message body. The receiver can use this information to decide how to handle the message without having to process the message body first.
Additional details can be found in the SNS Developer Guide
Fields§
§data_type: String
The data type of the attribute. Per the SNS Developer Guide, lambda notifications, this will only be String or Binary.
value: String
The user-specified message attribute value.
Trait Implementations§
source§impl Clone for MessageAttribute
impl Clone for MessageAttribute
source§fn clone(&self) -> MessageAttribute
fn clone(&self) -> MessageAttribute
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MessageAttribute
impl Debug for MessageAttribute
source§impl Default for MessageAttribute
impl Default for MessageAttribute
source§fn default() -> MessageAttribute
fn default() -> MessageAttribute
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MessageAttribute
impl<'de> Deserialize<'de> for MessageAttribute
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for MessageAttribute
impl PartialEq for MessageAttribute
source§fn eq(&self, other: &MessageAttribute) -> bool
fn eq(&self, other: &MessageAttribute) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MessageAttribute
impl Serialize for MessageAttribute
impl Eq for MessageAttribute
impl StructuralPartialEq for MessageAttribute
Auto Trait Implementations§
impl RefUnwindSafe for MessageAttribute
impl Send for MessageAttribute
impl Sync for MessageAttribute
impl Unpin for MessageAttribute
impl UnwindSafe for MessageAttribute
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more