Struct aws_sdk_ses::types::BounceAction
source · #[non_exhaustive]pub struct BounceAction {
pub topic_arn: Option<String>,
pub smtp_reply_code: String,
pub status_code: Option<String>,
pub message: String,
pub sender: String,
}
Expand description
When included in a receipt rule, this action rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).
For information about sending a bounce message in response to a received email, 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.topic_arn: Option<String>
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. You can find the ARN of a topic by using the ListTopics operation in Amazon SNS.
For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
smtp_reply_code: String
The SMTP reply code, as defined by RFC 5321.
status_code: Option<String>
The SMTP enhanced status code, as defined by RFC 3463.
message: String
Human-readable text to include in the bounce message.
sender: String
The email address of the sender of the bounced email. This is the address from which the bounce message is sent.
Implementations§
source§impl BounceAction
impl BounceAction
sourcepub fn topic_arn(&self) -> Option<&str>
pub fn topic_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. You can find the ARN of a topic by using the ListTopics operation in Amazon SNS.
For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
sourcepub fn smtp_reply_code(&self) -> &str
pub fn smtp_reply_code(&self) -> &str
The SMTP reply code, as defined by RFC 5321.
sourcepub fn status_code(&self) -> Option<&str>
pub fn status_code(&self) -> Option<&str>
The SMTP enhanced status code, as defined by RFC 3463.
source§impl BounceAction
impl BounceAction
sourcepub fn builder() -> BounceActionBuilder
pub fn builder() -> BounceActionBuilder
Creates a new builder-style object to manufacture BounceAction
.
Trait Implementations§
source§impl Clone for BounceAction
impl Clone for BounceAction
source§fn clone(&self) -> BounceAction
fn clone(&self) -> BounceAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BounceAction
impl Debug for BounceAction
source§impl PartialEq for BounceAction
impl PartialEq for BounceAction
source§fn eq(&self, other: &BounceAction) -> bool
fn eq(&self, other: &BounceAction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BounceAction
Auto Trait Implementations§
impl Freeze for BounceAction
impl RefUnwindSafe for BounceAction
impl Send for BounceAction
impl Sync for BounceAction
impl Unpin for BounceAction
impl UnwindSafe for BounceAction
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