Struct aws_sdk_ses::types::ReceiptIpFilter
source · #[non_exhaustive]pub struct ReceiptIpFilter {
pub policy: ReceiptFilterPolicy,
pub cidr: String,
}
Expand description
A receipt IP address filter enables you to specify whether to accept or reject mail originating from an IP address or range of IP addresses.
For information about setting up IP address filters, 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.policy: ReceiptFilterPolicy
Indicates whether to block or allow incoming mail from the specified IP addresses.
cidr: String
A single IP address or a range of IP addresses to block or allow, specified in Classless Inter-Domain Routing (CIDR) notation. An example of a single email address is 10.0.0.1. An example of a range of IP addresses is 10.0.0.1/24. For more information about CIDR notation, see RFC 2317.
Implementations§
source§impl ReceiptIpFilter
impl ReceiptIpFilter
sourcepub fn policy(&self) -> &ReceiptFilterPolicy
pub fn policy(&self) -> &ReceiptFilterPolicy
Indicates whether to block or allow incoming mail from the specified IP addresses.
sourcepub fn cidr(&self) -> &str
pub fn cidr(&self) -> &str
A single IP address or a range of IP addresses to block or allow, specified in Classless Inter-Domain Routing (CIDR) notation. An example of a single email address is 10.0.0.1. An example of a range of IP addresses is 10.0.0.1/24. For more information about CIDR notation, see RFC 2317.
source§impl ReceiptIpFilter
impl ReceiptIpFilter
sourcepub fn builder() -> ReceiptIpFilterBuilder
pub fn builder() -> ReceiptIpFilterBuilder
Creates a new builder-style object to manufacture ReceiptIpFilter
.
Trait Implementations§
source§impl Clone for ReceiptIpFilter
impl Clone for ReceiptIpFilter
source§fn clone(&self) -> ReceiptIpFilter
fn clone(&self) -> ReceiptIpFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReceiptIpFilter
impl Debug for ReceiptIpFilter
source§impl PartialEq for ReceiptIpFilter
impl PartialEq for ReceiptIpFilter
source§fn eq(&self, other: &ReceiptIpFilter) -> bool
fn eq(&self, other: &ReceiptIpFilter) -> bool
self
and other
values to be equal, and is used
by ==
.