Struct aws_sdk_mailmanager::types::RuleIpExpression
source · #[non_exhaustive]pub struct RuleIpExpression {
pub evaluate: Option<RuleIpToEvaluate>,
pub operator: RuleIpOperator,
pub values: Vec<String>,
}
Expand description
An IP address expression matching certain IP addresses within a given range of IP addresses.
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.evaluate: Option<RuleIpToEvaluate>
The IP address to evaluate in this condition.
operator: RuleIpOperator
The operator to evaluate the IP address.
values: Vec<String>
The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the email's IP address. For the operator CIDR_MATCHES, if multiple values are given, they are evaluated as an OR. That is, if the IP address is contained within any of the given CIDR ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to match if the IP address is not contained in any of the given CIDR ranges.
Implementations§
source§impl RuleIpExpression
impl RuleIpExpression
sourcepub fn evaluate(&self) -> Option<&RuleIpToEvaluate>
pub fn evaluate(&self) -> Option<&RuleIpToEvaluate>
The IP address to evaluate in this condition.
sourcepub fn operator(&self) -> &RuleIpOperator
pub fn operator(&self) -> &RuleIpOperator
The operator to evaluate the IP address.
sourcepub fn values(&self) -> &[String]
pub fn values(&self) -> &[String]
The IP CIDR blocks in format "x.y.z.w/n" (eg 10.0.0.0/8) to match with the email's IP address. For the operator CIDR_MATCHES, if multiple values are given, they are evaluated as an OR. That is, if the IP address is contained within any of the given CIDR ranges, the condition is deemed to match. For NOT_CIDR_MATCHES, if multiple CIDR ranges are given, the condition is deemed to match if the IP address is not contained in any of the given CIDR ranges.
source§impl RuleIpExpression
impl RuleIpExpression
sourcepub fn builder() -> RuleIpExpressionBuilder
pub fn builder() -> RuleIpExpressionBuilder
Creates a new builder-style object to manufacture RuleIpExpression
.
Trait Implementations§
source§impl Clone for RuleIpExpression
impl Clone for RuleIpExpression
source§fn clone(&self) -> RuleIpExpression
fn clone(&self) -> RuleIpExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuleIpExpression
impl Debug for RuleIpExpression
source§impl PartialEq for RuleIpExpression
impl PartialEq for RuleIpExpression
source§fn eq(&self, other: &RuleIpExpression) -> bool
fn eq(&self, other: &RuleIpExpression) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RuleIpExpression
Auto Trait Implementations§
impl Freeze for RuleIpExpression
impl RefUnwindSafe for RuleIpExpression
impl Send for RuleIpExpression
impl Sync for RuleIpExpression
impl Unpin for RuleIpExpression
impl UnwindSafe for RuleIpExpression
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