Struct aws_sdk_sesv2::types::SuppressionAttributes
source · #[non_exhaustive]pub struct SuppressionAttributes {
pub suppressed_reasons: Option<Vec<SuppressionListReason>>,
}
Expand description
An object that contains information about the email address suppression preferences for your account in the current Amazon Web Services Region.
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.suppressed_reasons: Option<Vec<SuppressionListReason>>
A list that contains the reasons that email addresses will be automatically added to the suppression list for your account. This list can contain any or all of the following:
-
COMPLAINT
– Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint. -
BOUNCE
– Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce.
Implementations§
source§impl SuppressionAttributes
impl SuppressionAttributes
sourcepub fn suppressed_reasons(&self) -> &[SuppressionListReason]
pub fn suppressed_reasons(&self) -> &[SuppressionListReason]
A list that contains the reasons that email addresses will be automatically added to the suppression list for your account. This list can contain any or all of the following:
-
COMPLAINT
– Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a complaint. -
BOUNCE
– Amazon SES adds an email address to the suppression list for your account when a message sent to that address results in a hard bounce.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .suppressed_reasons.is_none()
.
source§impl SuppressionAttributes
impl SuppressionAttributes
sourcepub fn builder() -> SuppressionAttributesBuilder
pub fn builder() -> SuppressionAttributesBuilder
Creates a new builder-style object to manufacture SuppressionAttributes
.
Trait Implementations§
source§impl Clone for SuppressionAttributes
impl Clone for SuppressionAttributes
source§fn clone(&self) -> SuppressionAttributes
fn clone(&self) -> SuppressionAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SuppressionAttributes
impl Debug for SuppressionAttributes
source§impl PartialEq for SuppressionAttributes
impl PartialEq for SuppressionAttributes
source§fn eq(&self, other: &SuppressionAttributes) -> bool
fn eq(&self, other: &SuppressionAttributes) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SuppressionAttributes
Auto Trait Implementations§
impl Freeze for SuppressionAttributes
impl RefUnwindSafe for SuppressionAttributes
impl Send for SuppressionAttributes
impl Sync for SuppressionAttributes
impl Unpin for SuppressionAttributes
impl UnwindSafe for SuppressionAttributes
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