Struct aws_sdk_sesv2::types::InsightsEvent
source · #[non_exhaustive]pub struct InsightsEvent {
pub timestamp: Option<DateTime>,
pub type: Option<EventType>,
pub details: Option<EventDetails>,
}Expand description
An object containing details about a specific event.
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.timestamp: Option<DateTime>The timestamp of the event.
type: Option<EventType>The type of event:
-
SEND- The send request was successful and SES will attempt to deliver the message to the recipient’s mail server. (If account-level or global suppression is being used, SES will still count it as a send, but delivery is suppressed.) -
DELIVERY- SES successfully delivered the email to the recipient's mail server. Excludes deliveries to the mailbox simulator, and those from emails addressed to more than one recipient. -
BOUNCE- Feedback received for delivery failures. Additional details about the bounce are provided in theDetailsobject. Excludes bounces from the mailbox simulator, and those from emails addressed to more than one recipient. -
COMPLAINT- Complaint received for the email. Additional details about the complaint are provided in theDetailsobject. This excludes complaints from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those from emails addressed to more than one recipient. -
OPEN- Open event for emails including open trackers. Excludes opens for emails addressed to more than one recipient. -
CLICK- Click event for emails including wrapped links. Excludes clicks for emails addressed to more than one recipient.
details: Option<EventDetails>Details about bounce or complaint events.
Implementations§
source§impl InsightsEvent
impl InsightsEvent
sourcepub fn type(&self) -> Option<&EventType>
pub fn type(&self) -> Option<&EventType>
The type of event:
-
SEND- The send request was successful and SES will attempt to deliver the message to the recipient’s mail server. (If account-level or global suppression is being used, SES will still count it as a send, but delivery is suppressed.) -
DELIVERY- SES successfully delivered the email to the recipient's mail server. Excludes deliveries to the mailbox simulator, and those from emails addressed to more than one recipient. -
BOUNCE- Feedback received for delivery failures. Additional details about the bounce are provided in theDetailsobject. Excludes bounces from the mailbox simulator, and those from emails addressed to more than one recipient. -
COMPLAINT- Complaint received for the email. Additional details about the complaint are provided in theDetailsobject. This excludes complaints from the mailbox simulator, those originating from your account-level suppression list (if enabled), and those from emails addressed to more than one recipient. -
OPEN- Open event for emails including open trackers. Excludes opens for emails addressed to more than one recipient. -
CLICK- Click event for emails including wrapped links. Excludes clicks for emails addressed to more than one recipient.
sourcepub fn details(&self) -> Option<&EventDetails>
pub fn details(&self) -> Option<&EventDetails>
Details about bounce or complaint events.
source§impl InsightsEvent
impl InsightsEvent
sourcepub fn builder() -> InsightsEventBuilder
pub fn builder() -> InsightsEventBuilder
Creates a new builder-style object to manufacture InsightsEvent.
Trait Implementations§
source§impl Clone for InsightsEvent
impl Clone for InsightsEvent
source§fn clone(&self) -> InsightsEvent
fn clone(&self) -> InsightsEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for InsightsEvent
impl Debug for InsightsEvent
source§impl PartialEq for InsightsEvent
impl PartialEq for InsightsEvent
source§fn eq(&self, other: &InsightsEvent) -> bool
fn eq(&self, other: &InsightsEvent) -> bool
self and other values to be equal, and is used
by ==.