Struct aws_sdk_mailmanager::types::RuleVerdictExpression
source · #[non_exhaustive]pub struct RuleVerdictExpression {
pub evaluate: Option<RuleVerdictToEvaluate>,
pub operator: RuleVerdictOperator,
pub values: Vec<RuleVerdict>,
}
Expand description
A verdict expression is evaluated against verdicts of the 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.evaluate: Option<RuleVerdictToEvaluate>
The verdict to evaluate in a verdict condition expression.
operator: RuleVerdictOperator
The matching operator for a verdict condition expression.
values: Vec<RuleVerdict>
The values to match with the email's verdict using the given operator. For the EQUALS operator, if multiple values are given, the condition is deemed to match if any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple values are given, the condition is deemed to match of none of the given verdicts match the verdict of the email.
Implementations§
source§impl RuleVerdictExpression
impl RuleVerdictExpression
sourcepub fn evaluate(&self) -> Option<&RuleVerdictToEvaluate>
pub fn evaluate(&self) -> Option<&RuleVerdictToEvaluate>
The verdict to evaluate in a verdict condition expression.
sourcepub fn operator(&self) -> &RuleVerdictOperator
pub fn operator(&self) -> &RuleVerdictOperator
The matching operator for a verdict condition expression.
sourcepub fn values(&self) -> &[RuleVerdict]
pub fn values(&self) -> &[RuleVerdict]
The values to match with the email's verdict using the given operator. For the EQUALS operator, if multiple values are given, the condition is deemed to match if any of the given verdicts match that of the email. For the NOT_EQUALS operator, if multiple values are given, the condition is deemed to match of none of the given verdicts match the verdict of the email.
source§impl RuleVerdictExpression
impl RuleVerdictExpression
sourcepub fn builder() -> RuleVerdictExpressionBuilder
pub fn builder() -> RuleVerdictExpressionBuilder
Creates a new builder-style object to manufacture RuleVerdictExpression
.
Trait Implementations§
source§impl Clone for RuleVerdictExpression
impl Clone for RuleVerdictExpression
source§fn clone(&self) -> RuleVerdictExpression
fn clone(&self) -> RuleVerdictExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuleVerdictExpression
impl Debug for RuleVerdictExpression
source§impl PartialEq for RuleVerdictExpression
impl PartialEq for RuleVerdictExpression
source§fn eq(&self, other: &RuleVerdictExpression) -> bool
fn eq(&self, other: &RuleVerdictExpression) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RuleVerdictExpression
Auto Trait Implementations§
impl Freeze for RuleVerdictExpression
impl RefUnwindSafe for RuleVerdictExpression
impl Send for RuleVerdictExpression
impl Sync for RuleVerdictExpression
impl Unpin for RuleVerdictExpression
impl UnwindSafe for RuleVerdictExpression
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