Struct aws_sdk_ses::model::recipient_dsn_fields::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for RecipientDsnFields
Implementations
sourceimpl Builder
impl Builder
sourcepub fn final_recipient(self, input: impl Into<String>) -> Self
pub fn final_recipient(self, input: impl Into<String>) -> Self
The email address that the message was ultimately delivered to. This corresponds to the Final-Recipient
in the DSN. If not specified, FinalRecipient
will be set to the Recipient
specified in the BouncedRecipientInfo
structure. Either FinalRecipient
or the recipient in BouncedRecipientInfo
must be a recipient of the original bounced message.
Do not prepend the FinalRecipient
email address with rfc 822;
, as described in RFC 3798.
sourcepub fn set_final_recipient(self, input: Option<String>) -> Self
pub fn set_final_recipient(self, input: Option<String>) -> Self
The email address that the message was ultimately delivered to. This corresponds to the Final-Recipient
in the DSN. If not specified, FinalRecipient
will be set to the Recipient
specified in the BouncedRecipientInfo
structure. Either FinalRecipient
or the recipient in BouncedRecipientInfo
must be a recipient of the original bounced message.
Do not prepend the FinalRecipient
email address with rfc 822;
, as described in RFC 3798.
sourcepub fn action(self, input: DsnAction) -> Self
pub fn action(self, input: DsnAction) -> Self
The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464.
sourcepub fn set_action(self, input: Option<DsnAction>) -> Self
pub fn set_action(self, input: Option<DsnAction>) -> Self
The action performed by the reporting mail transfer agent (MTA) as a result of its attempt to deliver the message to the recipient address. This is required by RFC 3464.
sourcepub fn remote_mta(self, input: impl Into<String>) -> Self
pub fn remote_mta(self, input: impl Into<String>) -> Self
The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). This parameter typically applies only to propagating synchronous bounces.
sourcepub fn set_remote_mta(self, input: Option<String>) -> Self
pub fn set_remote_mta(self, input: Option<String>) -> Self
The MTA to which the remote MTA attempted to deliver the message, formatted as specified in RFC 3464 (mta-name-type; mta-name
). This parameter typically applies only to propagating synchronous bounces.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The status code that indicates what went wrong. This is required by RFC 3464.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The status code that indicates what went wrong. This is required by RFC 3464.
sourcepub fn diagnostic_code(self, input: impl Into<String>) -> Self
pub fn diagnostic_code(self, input: impl Into<String>) -> Self
An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.
sourcepub fn set_diagnostic_code(self, input: Option<String>) -> Self
pub fn set_diagnostic_code(self, input: Option<String>) -> Self
An extended explanation of what went wrong; this is usually an SMTP response. See RFC 3463 for the correct formatting of this parameter.
sourcepub fn last_attempt_date(self, input: DateTime) -> Self
pub fn last_attempt_date(self, input: DateTime) -> Self
The time the final delivery attempt was made, in RFC 822 date-time format.
sourcepub fn set_last_attempt_date(self, input: Option<DateTime>) -> Self
pub fn set_last_attempt_date(self, input: Option<DateTime>) -> Self
The time the final delivery attempt was made, in RFC 822 date-time format.
sourcepub fn extension_fields(self, input: ExtensionField) -> Self
pub fn extension_fields(self, input: ExtensionField) -> Self
Appends an item to extension_fields
.
To override the contents of this collection use set_extension_fields
.
Additional X-headers to include in the DSN.
sourcepub fn set_extension_fields(self, input: Option<Vec<ExtensionField>>) -> Self
pub fn set_extension_fields(self, input: Option<Vec<ExtensionField>>) -> Self
Additional X-headers to include in the DSN.
sourcepub fn build(self) -> RecipientDsnFields
pub fn build(self) -> RecipientDsnFields
Consumes the builder and constructs a RecipientDsnFields
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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