Struct aws_sdk_ses::types::ReceiptAction
source · #[non_exhaustive]pub struct ReceiptAction {
pub s3_action: Option<S3Action>,
pub bounce_action: Option<BounceAction>,
pub workmail_action: Option<WorkmailAction>,
pub lambda_action: Option<LambdaAction>,
pub stop_action: Option<StopAction>,
pub add_header_action: Option<AddHeaderAction>,
pub sns_action: Option<SnsAction>,
}
Expand description
An action that Amazon SES can take when it receives an email on behalf of one or more email addresses or domains that you own. An instance of this data type can represent only one action.
For information about setting up receipt rules, 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.s3_action: Option<S3Action>
Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.
bounce_action: Option<BounceAction>
Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).
workmail_action: Option<WorkmailAction>
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.
lambda_action: Option<LambdaAction>
Calls an Amazon Web Services Lambda function, and optionally, publishes a notification to Amazon SNS.
stop_action: Option<StopAction>
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
add_header_action: Option<AddHeaderAction>
Adds a header to the received email.
sns_action: Option<SnsAction>
Publishes the email content within a notification to Amazon SNS.
Implementations§
source§impl ReceiptAction
impl ReceiptAction
sourcepub fn s3_action(&self) -> Option<&S3Action>
pub fn s3_action(&self) -> Option<&S3Action>
Saves the received message to an Amazon Simple Storage Service (Amazon S3) bucket and, optionally, publishes a notification to Amazon SNS.
sourcepub fn bounce_action(&self) -> Option<&BounceAction>
pub fn bounce_action(&self) -> Option<&BounceAction>
Rejects the received email by returning a bounce response to the sender and, optionally, publishes a notification to Amazon Simple Notification Service (Amazon SNS).
sourcepub fn workmail_action(&self) -> Option<&WorkmailAction>
pub fn workmail_action(&self) -> Option<&WorkmailAction>
Calls Amazon WorkMail and, optionally, publishes a notification to Amazon Amazon SNS.
sourcepub fn lambda_action(&self) -> Option<&LambdaAction>
pub fn lambda_action(&self) -> Option<&LambdaAction>
Calls an Amazon Web Services Lambda function, and optionally, publishes a notification to Amazon SNS.
sourcepub fn stop_action(&self) -> Option<&StopAction>
pub fn stop_action(&self) -> Option<&StopAction>
Terminates the evaluation of the receipt rule set and optionally publishes a notification to Amazon SNS.
sourcepub fn add_header_action(&self) -> Option<&AddHeaderAction>
pub fn add_header_action(&self) -> Option<&AddHeaderAction>
Adds a header to the received email.
sourcepub fn sns_action(&self) -> Option<&SnsAction>
pub fn sns_action(&self) -> Option<&SnsAction>
Publishes the email content within a notification to Amazon SNS.
source§impl ReceiptAction
impl ReceiptAction
sourcepub fn builder() -> ReceiptActionBuilder
pub fn builder() -> ReceiptActionBuilder
Creates a new builder-style object to manufacture ReceiptAction
.
Trait Implementations§
source§impl Clone for ReceiptAction
impl Clone for ReceiptAction
source§fn clone(&self) -> ReceiptAction
fn clone(&self) -> ReceiptAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReceiptAction
impl Debug for ReceiptAction
source§impl PartialEq for ReceiptAction
impl PartialEq for ReceiptAction
source§fn eq(&self, other: &ReceiptAction) -> bool
fn eq(&self, other: &ReceiptAction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReceiptAction
Auto Trait Implementations§
impl Freeze for ReceiptAction
impl RefUnwindSafe for ReceiptAction
impl Send for ReceiptAction
impl Sync for ReceiptAction
impl Unpin for ReceiptAction
impl UnwindSafe for ReceiptAction
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