Struct aws_sdk_mailmanager::types::RuleStringExpression
source · #[non_exhaustive]pub struct RuleStringExpression {
pub evaluate: Option<RuleStringToEvaluate>,
pub operator: RuleStringOperator,
pub values: Vec<String>,
}
Expand description
A string expression is evaluated against strings or substrings 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<RuleStringToEvaluate>
The string to evaluate in a string condition expression.
operator: RuleStringOperator
The matching operator for a string condition expression.
values: Vec<String>
The string(s) to be evaluated in a string condition expression. For all operators, except for NOT_EQUALS, if multiple values are given, the values are processed as an OR. That is, if any of the values match the email's string using the given operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only deemed to match if none of the given strings match the email's string.
Implementations§
source§impl RuleStringExpression
impl RuleStringExpression
sourcepub fn evaluate(&self) -> Option<&RuleStringToEvaluate>
pub fn evaluate(&self) -> Option<&RuleStringToEvaluate>
The string to evaluate in a string condition expression.
sourcepub fn operator(&self) -> &RuleStringOperator
pub fn operator(&self) -> &RuleStringOperator
The matching operator for a string condition expression.
sourcepub fn values(&self) -> &[String]
pub fn values(&self) -> &[String]
The string(s) to be evaluated in a string condition expression. For all operators, except for NOT_EQUALS, if multiple values are given, the values are processed as an OR. That is, if any of the values match the email's string using the given operator, the condition is deemed to match. However, for NOT_EQUALS, the condition is only deemed to match if none of the given strings match the email's string.
source§impl RuleStringExpression
impl RuleStringExpression
sourcepub fn builder() -> RuleStringExpressionBuilder
pub fn builder() -> RuleStringExpressionBuilder
Creates a new builder-style object to manufacture RuleStringExpression
.
Trait Implementations§
source§impl Clone for RuleStringExpression
impl Clone for RuleStringExpression
source§fn clone(&self) -> RuleStringExpression
fn clone(&self) -> RuleStringExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuleStringExpression
impl Debug for RuleStringExpression
source§impl PartialEq for RuleStringExpression
impl PartialEq for RuleStringExpression
source§fn eq(&self, other: &RuleStringExpression) -> bool
fn eq(&self, other: &RuleStringExpression) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RuleStringExpression
Auto Trait Implementations§
impl Freeze for RuleStringExpression
impl RefUnwindSafe for RuleStringExpression
impl Send for RuleStringExpression
impl Sync for RuleStringExpression
impl Unpin for RuleStringExpression
impl UnwindSafe for RuleStringExpression
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