#[non_exhaustive]pub struct RuleBooleanExpressionBuilder { /* private fields */ }
Expand description
A builder for RuleBooleanExpression
.
Implementations§
source§impl RuleBooleanExpressionBuilder
impl RuleBooleanExpressionBuilder
sourcepub fn evaluate(self, input: RuleBooleanToEvaluate) -> Self
pub fn evaluate(self, input: RuleBooleanToEvaluate) -> Self
The operand on which to perform a boolean condition operation.
This field is required.sourcepub fn set_evaluate(self, input: Option<RuleBooleanToEvaluate>) -> Self
pub fn set_evaluate(self, input: Option<RuleBooleanToEvaluate>) -> Self
The operand on which to perform a boolean condition operation.
sourcepub fn get_evaluate(&self) -> &Option<RuleBooleanToEvaluate>
pub fn get_evaluate(&self) -> &Option<RuleBooleanToEvaluate>
The operand on which to perform a boolean condition operation.
sourcepub fn operator(self, input: RuleBooleanOperator) -> Self
pub fn operator(self, input: RuleBooleanOperator) -> Self
The matching operator for a boolean condition expression.
This field is required.sourcepub fn set_operator(self, input: Option<RuleBooleanOperator>) -> Self
pub fn set_operator(self, input: Option<RuleBooleanOperator>) -> Self
The matching operator for a boolean condition expression.
sourcepub fn get_operator(&self) -> &Option<RuleBooleanOperator>
pub fn get_operator(&self) -> &Option<RuleBooleanOperator>
The matching operator for a boolean condition expression.
sourcepub fn build(self) -> Result<RuleBooleanExpression, BuildError>
pub fn build(self) -> Result<RuleBooleanExpression, BuildError>
Consumes the builder and constructs a RuleBooleanExpression
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RuleBooleanExpressionBuilder
impl Clone for RuleBooleanExpressionBuilder
source§fn clone(&self) -> RuleBooleanExpressionBuilder
fn clone(&self) -> RuleBooleanExpressionBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RuleBooleanExpressionBuilder
impl Debug for RuleBooleanExpressionBuilder
source§impl Default for RuleBooleanExpressionBuilder
impl Default for RuleBooleanExpressionBuilder
source§fn default() -> RuleBooleanExpressionBuilder
fn default() -> RuleBooleanExpressionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RuleBooleanExpressionBuilder
impl PartialEq for RuleBooleanExpressionBuilder
source§fn eq(&self, other: &RuleBooleanExpressionBuilder) -> bool
fn eq(&self, other: &RuleBooleanExpressionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RuleBooleanExpressionBuilder
Auto Trait Implementations§
impl Freeze for RuleBooleanExpressionBuilder
impl RefUnwindSafe for RuleBooleanExpressionBuilder
impl Send for RuleBooleanExpressionBuilder
impl Sync for RuleBooleanExpressionBuilder
impl Unpin for RuleBooleanExpressionBuilder
impl UnwindSafe for RuleBooleanExpressionBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.