Struct rusoto_ses::ReceiptRule
source · [−]pub struct ReceiptRule {
pub actions: Option<Vec<ReceiptAction>>,
pub enabled: Option<bool>,
pub name: String,
pub recipients: Option<Vec<String>>,
pub scan_enabled: Option<bool>,
pub tls_policy: Option<String>,
}
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
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.
enabled: Option<bool>
If true
, the receipt rule is active. The default value is false
.
name: String
The name of the receipt rule. The name must:
-
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
-
Start and end with a letter or number.
-
Contain less than 64 characters.
recipients: Option<Vec<String>>
The recipient domains and email addresses that the receipt rule applies to. If this field is not specified, this rule will match all recipients under all verified domains.
scan_enabled: Option<bool>
If true
, then messages that this receipt rule applies to are scanned for spam and viruses. The default value is false
.
tls_policy: Option<String>
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 will bounce emails that are not received over TLS. The default is Optional
.
Trait Implementations
sourceimpl Clone for ReceiptRule
impl Clone for ReceiptRule
sourcefn clone(&self) -> ReceiptRule
fn clone(&self) -> ReceiptRule
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 ReceiptRule
impl Debug for ReceiptRule
sourceimpl Default for ReceiptRule
impl Default for ReceiptRule
sourcefn default() -> ReceiptRule
fn default() -> ReceiptRule
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ReceiptRule> for ReceiptRule
impl PartialEq<ReceiptRule> for ReceiptRule
sourcefn eq(&self, other: &ReceiptRule) -> bool
fn eq(&self, other: &ReceiptRule) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ReceiptRule) -> bool
fn ne(&self, other: &ReceiptRule) -> bool
This method tests for !=
.
impl StructuralPartialEq for ReceiptRule
Auto Trait Implementations
impl RefUnwindSafe for ReceiptRule
impl Send for ReceiptRule
impl Sync for ReceiptRule
impl Unpin for ReceiptRule
impl UnwindSafe for ReceiptRule
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