Struct aws_sdk_mailmanager::types::RuleDmarcExpression
source · #[non_exhaustive]pub struct RuleDmarcExpression {
pub operator: RuleDmarcOperator,
pub values: Vec<RuleDmarcPolicy>,
}
Expand description
A DMARC policy expression. The condition matches if the given DMARC policy matches that of the incoming email.
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.operator: RuleDmarcOperator
The operator to apply to the DMARC policy of the incoming email.
values: Vec<RuleDmarcPolicy>
The values to use for the given DMARC policy operator. For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That is, if any of the given values match, the condition is deemed to match. For the operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the email's DMARC policy is not equal to any of the given values, then the condition is deemed to match.
Implementations§
source§impl RuleDmarcExpression
impl RuleDmarcExpression
sourcepub fn operator(&self) -> &RuleDmarcOperator
pub fn operator(&self) -> &RuleDmarcOperator
The operator to apply to the DMARC policy of the incoming email.
sourcepub fn values(&self) -> &[RuleDmarcPolicy]
pub fn values(&self) -> &[RuleDmarcPolicy]
The values to use for the given DMARC policy operator. For the operator EQUALS, if multiple values are given, they are evaluated as an OR. That is, if any of the given values match, the condition is deemed to match. For the operator NOT_EQUALS, if multiple values are given, they are evaluated as an AND. That is, only if the email's DMARC policy is not equal to any of the given values, then the condition is deemed to match.
source§impl RuleDmarcExpression
impl RuleDmarcExpression
sourcepub fn builder() -> RuleDmarcExpressionBuilder
pub fn builder() -> RuleDmarcExpressionBuilder
Creates a new builder-style object to manufacture RuleDmarcExpression
.
Trait Implementations§
source§impl Clone for RuleDmarcExpression
impl Clone for RuleDmarcExpression
source§fn clone(&self) -> RuleDmarcExpression
fn clone(&self) -> RuleDmarcExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuleDmarcExpression
impl Debug for RuleDmarcExpression
source§impl PartialEq for RuleDmarcExpression
impl PartialEq for RuleDmarcExpression
source§fn eq(&self, other: &RuleDmarcExpression) -> bool
fn eq(&self, other: &RuleDmarcExpression) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RuleDmarcExpression
Auto Trait Implementations§
impl Freeze for RuleDmarcExpression
impl RefUnwindSafe for RuleDmarcExpression
impl Send for RuleDmarcExpression
impl Sync for RuleDmarcExpression
impl Unpin for RuleDmarcExpression
impl UnwindSafe for RuleDmarcExpression
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