Struct aws_sdk_ses::types::ReceiptRule
source · #[non_exhaustive]pub struct ReceiptRule {
pub name: String,
pub enabled: bool,
pub tls_policy: Option<TlsPolicy>,
pub recipients: Option<Vec<String>>,
pub actions: Option<Vec<ReceiptAction>>,
pub scan_enabled: bool,
}
Expand description
Receipt rules enable you to specify which actions Amazon SES should take when it receives mail on behalf of one or more email addresses or domains that you own.
Each receipt rule defines a set of email addresses or domains that it applies to. If the email addresses or domains match at least one recipient address of the message, Amazon SES executes all of the receipt rule's actions on the message.
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.name: String
The name of the receipt rule. The name must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or periods (.).
-
Start and end with a letter or number.
-
Contain 64 characters or fewer.
enabled: bool
If true
, the receipt rule is active. The default value is false
.
tls_policy: Option<TlsPolicy>
Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS). If this parameter is set to Require
, Amazon SES bounces emails that are not received over TLS. The default is Optional
.
recipients: Option<Vec<String>>
The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this rule matches all recipients on all verified domains.
actions: Option<Vec<ReceiptAction>>
An ordered list of actions to perform on messages that match at least one of the recipient email addresses or domains specified in the receipt rule.
scan_enabled: bool
If true
, then messages that this receipt rule applies to are scanned for spam and viruses. The default value is false
.
Implementations§
source§impl ReceiptRule
impl ReceiptRule
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The name of the receipt rule. The name must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or periods (.).
-
Start and end with a letter or number.
-
Contain 64 characters or fewer.
sourcepub fn tls_policy(&self) -> Option<&TlsPolicy>
pub fn tls_policy(&self) -> Option<&TlsPolicy>
Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted with Transport Layer Security (TLS). If this parameter is set to Require
, Amazon SES bounces emails that are not received over TLS. The default is Optional
.
sourcepub fn recipients(&self) -> &[String]
pub fn recipients(&self) -> &[String]
The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this rule matches all recipients on all verified domains.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .recipients.is_none()
.
sourcepub fn actions(&self) -> &[ReceiptAction]
pub fn actions(&self) -> &[ReceiptAction]
An ordered list of actions to perform on messages that match at least one of the recipient email addresses or domains specified in the receipt rule.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .actions.is_none()
.
sourcepub fn scan_enabled(&self) -> bool
pub fn scan_enabled(&self) -> bool
If true
, then messages that this receipt rule applies to are scanned for spam and viruses. The default value is false
.
source§impl ReceiptRule
impl ReceiptRule
sourcepub fn builder() -> ReceiptRuleBuilder
pub fn builder() -> ReceiptRuleBuilder
Creates a new builder-style object to manufacture ReceiptRule
.
Trait Implementations§
source§impl Clone for ReceiptRule
impl Clone for ReceiptRule
source§fn clone(&self) -> ReceiptRule
fn clone(&self) -> ReceiptRule
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReceiptRule
impl Debug for ReceiptRule
source§impl PartialEq for ReceiptRule
impl PartialEq for ReceiptRule
source§fn eq(&self, other: &ReceiptRule) -> bool
fn eq(&self, other: &ReceiptRule) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReceiptRule
Auto Trait Implementations§
impl Freeze for ReceiptRule
impl RefUnwindSafe for ReceiptRule
impl Send for ReceiptRule
impl Sync for ReceiptRule
impl Unpin for ReceiptRule
impl UnwindSafe for ReceiptRule
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