Struct aws_sdk_ses::types::ReceiptFilter
source · #[non_exhaustive]pub struct ReceiptFilter {
pub name: String,
pub ip_filter: Option<ReceiptIpFilter>,
}
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.name: String
The name of the IP address filter. The name must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
-
Start and end with a letter or number.
-
Contain 64 characters or fewer.
ip_filter: Option<ReceiptIpFilter>
A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.
Implementations§
source§impl ReceiptFilter
impl ReceiptFilter
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The name of the IP address filter. The name must meet the following requirements:
-
Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
-
Start and end with a letter or number.
-
Contain 64 characters or fewer.
sourcepub fn ip_filter(&self) -> Option<&ReceiptIpFilter>
pub fn ip_filter(&self) -> Option<&ReceiptIpFilter>
A structure that provides the IP addresses to block or allow, and whether to block or allow incoming mail from them.
source§impl ReceiptFilter
impl ReceiptFilter
sourcepub fn builder() -> ReceiptFilterBuilder
pub fn builder() -> ReceiptFilterBuilder
Creates a new builder-style object to manufacture ReceiptFilter
.
Trait Implementations§
source§impl Clone for ReceiptFilter
impl Clone for ReceiptFilter
source§fn clone(&self) -> ReceiptFilter
fn clone(&self) -> ReceiptFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReceiptFilter
impl Debug for ReceiptFilter
source§impl PartialEq for ReceiptFilter
impl PartialEq for ReceiptFilter
source§fn eq(&self, other: &ReceiptFilter) -> bool
fn eq(&self, other: &ReceiptFilter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReceiptFilter
Auto Trait Implementations§
impl Freeze for ReceiptFilter
impl RefUnwindSafe for ReceiptFilter
impl Send for ReceiptFilter
impl Sync for ReceiptFilter
impl Unpin for ReceiptFilter
impl UnwindSafe for ReceiptFilter
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