Struct aws_lambda_events::event::sns::SnsRecordObj
source · pub struct SnsRecordObj<T: Serialize> {
pub event_source: String,
pub event_version: String,
pub event_subscription_arn: String,
pub sns: SnsMessageObj<T>,
}Expand description
Alternative to SnsRecord, used alongside SnsEventObj<T> and SnsMessageObj<T> when deserializing nested objects from within SNS messages)
Fields§
§event_source: StringA string containing the event source.
event_version: StringA string containing the event version.
event_subscription_arn: StringA string containing the event subscription ARN.
sns: SnsMessageObj<T>An SNS object representing the SNS message.
Trait Implementations§
source§impl<T: Clone + Serialize> Clone for SnsRecordObj<T>
impl<T: Clone + Serialize> Clone for SnsRecordObj<T>
source§fn clone(&self) -> SnsRecordObj<T>
fn clone(&self) -> SnsRecordObj<T>
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<'de, T> Deserialize<'de> for SnsRecordObj<T>where
T: DeserializeOwned + Serialize,
impl<'de, T> Deserialize<'de> for SnsRecordObj<T>where
T: DeserializeOwned + Serialize,
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<T: PartialEq + Serialize> PartialEq for SnsRecordObj<T>
impl<T: PartialEq + Serialize> PartialEq for SnsRecordObj<T>
source§fn eq(&self, other: &SnsRecordObj<T>) -> bool
fn eq(&self, other: &SnsRecordObj<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<T> Serialize for SnsRecordObj<T>
impl<T> Serialize for SnsRecordObj<T>
impl<T: Eq + Serialize> Eq for SnsRecordObj<T>
impl<T: Serialize> StructuralEq for SnsRecordObj<T>
impl<T: Serialize> StructuralPartialEq for SnsRecordObj<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for SnsRecordObj<T>where
T: RefUnwindSafe,
impl<T> Send for SnsRecordObj<T>where
T: Send,
impl<T> Sync for SnsRecordObj<T>where
T: Sync,
impl<T> Unpin for SnsRecordObj<T>where
T: Unpin,
impl<T> UnwindSafe for SnsRecordObj<T>where
T: UnwindSafe,
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