pub struct CriterionResult {
pub id: String,
pub passed: bool,
pub actual: f64,
pub expected: f64,
pub message: String,
pub severity: Severity,
}Expand description
Result of evaluating a falsification criterion.
Fields§
§id: StringCriterion ID.
passed: boolWhether the criterion passed.
actual: f64Actual value observed.
expected: f64Expected threshold.
message: StringHuman-readable message.
severity: SeveritySeverity of this criterion.
Trait Implementations§
Source§impl Clone for CriterionResult
impl Clone for CriterionResult
Source§fn clone(&self) -> CriterionResult
fn clone(&self) -> CriterionResult
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 moreSource§impl Debug for CriterionResult
impl Debug for CriterionResult
Source§impl<'de> Deserialize<'de> for CriterionResult
impl<'de> Deserialize<'de> for CriterionResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&CriterionResult> for CriterionResultJson
impl From<&CriterionResult> for CriterionResultJson
Source§fn from(result: &CriterionResult) -> Self
fn from(result: &CriterionResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CriterionResult
impl RefUnwindSafe for CriterionResult
impl Send for CriterionResult
impl Sync for CriterionResult
impl Unpin for CriterionResult
impl UnsafeUnpin for CriterionResult
impl UnwindSafe for CriterionResult
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