#[non_exhaustive]pub struct RuleStringExpressionBuilder { /* private fields */ }
Expand description
A builder for RuleStringExpression
.
Implementations§
source§impl RuleStringExpressionBuilder
impl RuleStringExpressionBuilder
sourcepub fn evaluate(self, input: RuleStringToEvaluate) -> Self
pub fn evaluate(self, input: RuleStringToEvaluate) -> Self
The string to evaluate in a string condition expression.
This field is required.sourcepub fn set_evaluate(self, input: Option<RuleStringToEvaluate>) -> Self
pub fn set_evaluate(self, input: Option<RuleStringToEvaluate>) -> Self
The string to evaluate in a string condition expression.
sourcepub fn get_evaluate(&self) -> &Option<RuleStringToEvaluate>
pub fn get_evaluate(&self) -> &Option<RuleStringToEvaluate>
The string to evaluate in a string condition expression.
sourcepub fn operator(self, input: RuleStringOperator) -> Self
pub fn operator(self, input: RuleStringOperator) -> Self
The matching operator for a string condition expression.
This field is required.sourcepub fn set_operator(self, input: Option<RuleStringOperator>) -> Self
pub fn set_operator(self, input: Option<RuleStringOperator>) -> Self
The matching operator for a string condition expression.
sourcepub fn get_operator(&self) -> &Option<RuleStringOperator>
pub fn get_operator(&self) -> &Option<RuleStringOperator>
The matching operator for a string condition expression.
sourcepub fn values(self, input: impl Into<String>) -> Self
pub fn values(self, input: impl Into<String>) -> Self
Appends an item to values
.
To override the contents of this collection use set_values
.
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.
sourcepub fn set_values(self, input: Option<Vec<String>>) -> Self
pub fn set_values(self, input: Option<Vec<String>>) -> Self
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.
sourcepub fn get_values(&self) -> &Option<Vec<String>>
pub fn get_values(&self) -> &Option<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.
sourcepub fn build(self) -> Result<RuleStringExpression, BuildError>
pub fn build(self) -> Result<RuleStringExpression, BuildError>
Consumes the builder and constructs a RuleStringExpression
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RuleStringExpressionBuilder
impl Clone for RuleStringExpressionBuilder
source§fn clone(&self) -> RuleStringExpressionBuilder
fn clone(&self) -> RuleStringExpressionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuleStringExpressionBuilder
impl Debug for RuleStringExpressionBuilder
source§impl Default for RuleStringExpressionBuilder
impl Default for RuleStringExpressionBuilder
source§fn default() -> RuleStringExpressionBuilder
fn default() -> RuleStringExpressionBuilder
source§impl PartialEq for RuleStringExpressionBuilder
impl PartialEq for RuleStringExpressionBuilder
source§fn eq(&self, other: &RuleStringExpressionBuilder) -> bool
fn eq(&self, other: &RuleStringExpressionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RuleStringExpressionBuilder
Auto Trait Implementations§
impl Freeze for RuleStringExpressionBuilder
impl RefUnwindSafe for RuleStringExpressionBuilder
impl Send for RuleStringExpressionBuilder
impl Sync for RuleStringExpressionBuilder
impl Unpin for RuleStringExpressionBuilder
impl UnwindSafe for RuleStringExpressionBuilder
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