#[non_exhaustive]pub struct IdentityMailFromDomainAttributes {
pub mail_from_domain: String,
pub mail_from_domain_status: CustomMailFromStatus,
pub behavior_on_mx_failure: BehaviorOnMxFailure,
}
Expand description
Represents the custom MAIL FROM domain attributes of a verified identity (email address or domain).
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.mail_from_domain: String
The custom MAIL FROM domain that the identity is configured to use.
mail_from_domain_status: CustomMailFromStatus
The state that indicates whether Amazon SES has successfully read the MX record required for custom MAIL FROM domain setup. If the state is Success
, Amazon SES uses the specified custom MAIL FROM domain when the verified identity sends an email. All other states indicate that Amazon SES takes the action described by BehaviorOnMXFailure
.
behavior_on_mx_failure: BehaviorOnMxFailure
The action that Amazon SES takes if it cannot successfully read the required MX record when you send an email. A value of UseDefaultValue
indicates that if Amazon SES cannot read the required MX record, it uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. A value of RejectMessage
indicates that if Amazon SES cannot read the required MX record, Amazon SES returns a MailFromDomainNotVerified
error and does not send the email.
The custom MAIL FROM setup states that result in this behavior are Pending
, Failed
, and TemporaryFailure
.
Implementations§
source§impl IdentityMailFromDomainAttributes
impl IdentityMailFromDomainAttributes
sourcepub fn mail_from_domain(&self) -> &str
pub fn mail_from_domain(&self) -> &str
The custom MAIL FROM domain that the identity is configured to use.
sourcepub fn mail_from_domain_status(&self) -> &CustomMailFromStatus
pub fn mail_from_domain_status(&self) -> &CustomMailFromStatus
The state that indicates whether Amazon SES has successfully read the MX record required for custom MAIL FROM domain setup. If the state is Success
, Amazon SES uses the specified custom MAIL FROM domain when the verified identity sends an email. All other states indicate that Amazon SES takes the action described by BehaviorOnMXFailure
.
sourcepub fn behavior_on_mx_failure(&self) -> &BehaviorOnMxFailure
pub fn behavior_on_mx_failure(&self) -> &BehaviorOnMxFailure
The action that Amazon SES takes if it cannot successfully read the required MX record when you send an email. A value of UseDefaultValue
indicates that if Amazon SES cannot read the required MX record, it uses amazonses.com (or a subdomain of that) as the MAIL FROM domain. A value of RejectMessage
indicates that if Amazon SES cannot read the required MX record, Amazon SES returns a MailFromDomainNotVerified
error and does not send the email.
The custom MAIL FROM setup states that result in this behavior are Pending
, Failed
, and TemporaryFailure
.
source§impl IdentityMailFromDomainAttributes
impl IdentityMailFromDomainAttributes
sourcepub fn builder() -> IdentityMailFromDomainAttributesBuilder
pub fn builder() -> IdentityMailFromDomainAttributesBuilder
Creates a new builder-style object to manufacture IdentityMailFromDomainAttributes
.
Trait Implementations§
source§impl Clone for IdentityMailFromDomainAttributes
impl Clone for IdentityMailFromDomainAttributes
source§fn clone(&self) -> IdentityMailFromDomainAttributes
fn clone(&self) -> IdentityMailFromDomainAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for IdentityMailFromDomainAttributes
impl PartialEq for IdentityMailFromDomainAttributes
source§fn eq(&self, other: &IdentityMailFromDomainAttributes) -> bool
fn eq(&self, other: &IdentityMailFromDomainAttributes) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IdentityMailFromDomainAttributes
Auto Trait Implementations§
impl Freeze for IdentityMailFromDomainAttributes
impl RefUnwindSafe for IdentityMailFromDomainAttributes
impl Send for IdentityMailFromDomainAttributes
impl Sync for IdentityMailFromDomainAttributes
impl Unpin for IdentityMailFromDomainAttributes
impl UnwindSafe for IdentityMailFromDomainAttributes
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