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 ==
.impl StructuralPartialEq for ReceiptIpFilter
Auto Trait Implementations§
impl Freeze for ReceiptIpFilter
impl RefUnwindSafe for ReceiptIpFilter
impl Send for ReceiptIpFilter
impl Sync for ReceiptIpFilter
impl Unpin for ReceiptIpFilter
impl UnwindSafe for ReceiptIpFilter
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