Struct aws_sdk_ses::types::MessageDsn
source · #[non_exhaustive]pub struct MessageDsn {
pub reporting_mta: String,
pub arrival_date: Option<DateTime>,
pub extension_fields: Option<Vec<ExtensionField>>,
}
Expand description
Message-related information to include in the Delivery Status Notification (DSN) when an email that Amazon SES receives on your behalf bounces.
For information about receiving email through Amazon SES, see the Amazon SES 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.reporting_mta: String
The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). The default value is dns; inbound-smtp.[region].amazonaws.com
.
arrival_date: Option<DateTime>
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
extension_fields: Option<Vec<ExtensionField>>
Additional X-headers to include in the DSN.
Implementations§
source§impl MessageDsn
impl MessageDsn
sourcepub fn reporting_mta(&self) -> &str
pub fn reporting_mta(&self) -> &str
The reporting MTA that attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). The default value is dns; inbound-smtp.[region].amazonaws.com
.
sourcepub fn arrival_date(&self) -> Option<&DateTime>
pub fn arrival_date(&self) -> Option<&DateTime>
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
sourcepub fn extension_fields(&self) -> &[ExtensionField]
pub fn extension_fields(&self) -> &[ExtensionField]
Additional X-headers to include in the DSN.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .extension_fields.is_none()
.
source§impl MessageDsn
impl MessageDsn
sourcepub fn builder() -> MessageDsnBuilder
pub fn builder() -> MessageDsnBuilder
Creates a new builder-style object to manufacture MessageDsn
.
Trait Implementations§
source§impl Clone for MessageDsn
impl Clone for MessageDsn
source§fn clone(&self) -> MessageDsn
fn clone(&self) -> MessageDsn
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MessageDsn
impl Debug for MessageDsn
source§impl PartialEq for MessageDsn
impl PartialEq for MessageDsn
source§fn eq(&self, other: &MessageDsn) -> bool
fn eq(&self, other: &MessageDsn) -> bool
self
and other
values to be equal, and is used
by ==
.