Struct aws_sdk_ses::model::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 AWS 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
sourceimpl 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 AWS 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.
sourceimpl ReceiptAction
impl ReceiptAction
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ReceiptAction
Trait Implementations
sourceimpl Clone for ReceiptAction
impl Clone for ReceiptAction
sourcefn clone(&self) -> ReceiptAction
fn clone(&self) -> ReceiptAction
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 ReceiptAction
impl Debug for ReceiptAction
sourceimpl PartialEq<ReceiptAction> for ReceiptAction
impl PartialEq<ReceiptAction> for ReceiptAction
sourcefn eq(&self, other: &ReceiptAction) -> bool
fn eq(&self, other: &ReceiptAction) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ReceiptAction) -> bool
fn ne(&self, other: &ReceiptAction) -> bool
This method tests for !=
.
impl StructuralPartialEq for ReceiptAction
Auto Trait Implementations
impl RefUnwindSafe for ReceiptAction
impl Send for ReceiptAction
impl Sync for ReceiptAction
impl Unpin for ReceiptAction
impl UnwindSafe for ReceiptAction
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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