pub struct CriterionResultJson {
pub id: String,
pub passed: bool,
pub actual: f64,
pub expected: f64,
pub message: String,
pub severity: String,
}Expand description
JSON-serializable criterion result.
Fields§
§id: StringCriterion ID.
passed: boolWhether criterion passed.
actual: f64Actual value.
expected: f64Expected threshold.
message: StringHuman-readable message.
severity: StringSeverity level.
Trait Implementations§
Source§impl Clone for CriterionResultJson
impl Clone for CriterionResultJson
Source§fn clone(&self) -> CriterionResultJson
fn clone(&self) -> CriterionResultJson
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 CriterionResultJson
impl Debug for CriterionResultJson
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 CriterionResultJson
impl RefUnwindSafe for CriterionResultJson
impl Send for CriterionResultJson
impl Sync for CriterionResultJson
impl Unpin for CriterionResultJson
impl UnsafeUnpin for CriterionResultJson
impl UnwindSafe for CriterionResultJson
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