pub struct LogicalResult {
pub result: bool,
pub individual_results: Vec<(String, bool)>,
pub operator: LogicalOperator,
pub message: Option<String>,
}Expand description
Result of evaluating a logical expression.
This struct contains both the overall boolean result and detailed information about individual evaluations.
Fields§
§result: boolThe overall result of the logical evaluation
individual_results: Vec<(String, bool)>Individual results that were combined
operator: LogicalOperatorThe operator used for combination
message: Option<String>Optional detailed message
Implementations§
Source§impl LogicalResult
impl LogicalResult
Sourcepub fn new(
result: bool,
individual_results: Vec<(String, bool)>,
operator: LogicalOperator,
) -> Self
pub fn new( result: bool, individual_results: Vec<(String, bool)>, operator: LogicalOperator, ) -> Self
Creates a new logical result.
Sourcepub fn with_message(self, message: String) -> Self
pub fn with_message(self, message: String) -> Self
Creates a logical result with a message.
Sourcepub fn passed_columns(&self) -> Vec<&str>
pub fn passed_columns(&self) -> Vec<&str>
Returns the columns that passed the evaluation.
Sourcepub fn failed_columns(&self) -> Vec<&str>
pub fn failed_columns(&self) -> Vec<&str>
Returns the columns that failed the evaluation.
Trait Implementations§
Source§impl Clone for LogicalResult
impl Clone for LogicalResult
Source§fn clone(&self) -> LogicalResult
fn clone(&self) -> LogicalResult
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for LogicalResult
impl RefUnwindSafe for LogicalResult
impl Send for LogicalResult
impl Sync for LogicalResult
impl Unpin for LogicalResult
impl UnwindSafe for LogicalResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more