pub struct ConditionResult {
pub passed: bool,
pub description: String,
pub actual_value: Option<String>,
pub expected_value: Option<String>,
pub error: Option<MatchError>,
}Expand description
Result of evaluating a single condition
Fields§
§passed: boolWhether this condition passed
description: StringDescription of what was checked
actual_value: Option<String>The actual value that was compared (as string for display)
expected_value: Option<String>The expected value (as string for display)
error: Option<MatchError>Error if evaluation failed
Trait Implementations§
Source§impl Clone for ConditionResult
impl Clone for ConditionResult
Source§fn clone(&self) -> ConditionResult
fn clone(&self) -> ConditionResult
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 ConditionResult
impl RefUnwindSafe for ConditionResult
impl Send for ConditionResult
impl Sync for ConditionResult
impl Unpin for ConditionResult
impl UnwindSafe for ConditionResult
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