Struct aws_sdk_ses::types::builders::MessageDsnBuilder
source · #[non_exhaustive]pub struct MessageDsnBuilder { /* private fields */ }
Expand description
A builder for MessageDsn
.
Implementations§
source§impl MessageDsnBuilder
impl MessageDsnBuilder
sourcepub fn reporting_mta(self, input: impl Into<String>) -> Self
pub fn reporting_mta(self, input: impl Into<String>) -> Self
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 set_reporting_mta(self, input: Option<String>) -> Self
pub fn set_reporting_mta(self, input: Option<String>) -> Self
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 get_reporting_mta(&self) -> &Option<String>
pub fn get_reporting_mta(&self) -> &Option<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
.
sourcepub fn arrival_date(self, input: DateTime) -> Self
pub fn arrival_date(self, input: DateTime) -> Self
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
sourcepub fn set_arrival_date(self, input: Option<DateTime>) -> Self
pub fn set_arrival_date(self, input: Option<DateTime>) -> Self
When the message was received by the reporting mail transfer agent (MTA), in RFC 822 date-time format.
sourcepub fn get_arrival_date(&self) -> &Option<DateTime>
pub fn get_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, 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 get_extension_fields(&self) -> &Option<Vec<ExtensionField>>
pub fn get_extension_fields(&self) -> &Option<Vec<ExtensionField>>
Additional X-headers to include in the DSN.
sourcepub fn build(self) -> Result<MessageDsn, BuildError>
pub fn build(self) -> Result<MessageDsn, BuildError>
Consumes the builder and constructs a MessageDsn
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for MessageDsnBuilder
impl Clone for MessageDsnBuilder
source§fn clone(&self) -> MessageDsnBuilder
fn clone(&self) -> MessageDsnBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MessageDsnBuilder
impl Debug for MessageDsnBuilder
source§impl Default for MessageDsnBuilder
impl Default for MessageDsnBuilder
source§fn default() -> MessageDsnBuilder
fn default() -> MessageDsnBuilder
source§impl PartialEq for MessageDsnBuilder
impl PartialEq for MessageDsnBuilder
source§fn eq(&self, other: &MessageDsnBuilder) -> bool
fn eq(&self, other: &MessageDsnBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MessageDsnBuilder
Auto Trait Implementations§
impl Freeze for MessageDsnBuilder
impl RefUnwindSafe for MessageDsnBuilder
impl Send for MessageDsnBuilder
impl Sync for MessageDsnBuilder
impl Unpin for MessageDsnBuilder
impl UnwindSafe for MessageDsnBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more