Struct aws_sdk_ses::model::BounceAction
source · [−]#[non_exhaustive]pub struct BounceAction {
pub topic_arn: Option<String>,
pub smtp_reply_code: Option<String>,
pub status_code: Option<String>,
pub message: Option<String>,
pub sender: Option<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. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic
. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
smtp_reply_code: Option<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: Option<String>
Human-readable text to include in the bounce message.
sender: Option<String>
The email address of the sender of the bounced email. This is the address from which the bounce message will be sent.
Implementations
sourceimpl 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. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic
. For more information about Amazon SNS topics, see the Amazon SNS Developer Guide.
sourcepub fn smtp_reply_code(&self) -> Option<&str>
pub fn smtp_reply_code(&self) -> Option<&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.
sourceimpl BounceAction
impl BounceAction
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture BounceAction
Trait Implementations
sourceimpl Clone for BounceAction
impl Clone for BounceAction
sourcefn clone(&self) -> BounceAction
fn clone(&self) -> BounceAction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BounceAction
impl Debug for BounceAction
sourceimpl PartialEq<BounceAction> for BounceAction
impl PartialEq<BounceAction> for BounceAction
sourcefn eq(&self, other: &BounceAction) -> bool
fn eq(&self, other: &BounceAction) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BounceAction) -> bool
fn ne(&self, other: &BounceAction) -> bool
This method tests for !=
.
impl StructuralPartialEq for BounceAction
Auto Trait Implementations
impl RefUnwindSafe for BounceAction
impl Send for BounceAction
impl Sync for BounceAction
impl Unpin for BounceAction
impl UnwindSafe for BounceAction
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