pub struct CheckRecord {
pub name: String,
pub satisfied: bool,
pub skipped: bool,
pub started_at_ms: u128,
pub elapsed_ms: u128,
pub detail: Value,
}Expand description
Evidence for one check that ran.
Fields§
§name: StringCheck name.
satisfied: boolWhether the check was satisfied.
skipped: boolWhether the check could not run and was skipped.
started_at_ms: u128Milliseconds into the wait at which the check started.
elapsed_ms: u128Milliseconds the check itself took.
detail: ValueStructured detail describing what the check observed.
Implementations§
Source§impl CheckRecord
impl CheckRecord
Sourcepub fn unsatisfied(name: impl Into<String>, detail: Value) -> Self
pub fn unsatisfied(name: impl Into<String>, detail: Value) -> Self
Record a check that was not satisfied.
Sourcepub fn skipped(name: impl Into<String>, reason: impl Into<String>) -> Self
pub fn skipped(name: impl Into<String>, reason: impl Into<String>) -> Self
Record a check that could not run.
Sourcepub fn with_timing(self, started_at_ms: u128, elapsed_ms: u128) -> Self
pub fn with_timing(self, started_at_ms: u128, elapsed_ms: u128) -> Self
Attach the timing window the check occupied.
Trait Implementations§
Source§impl Clone for CheckRecord
impl Clone for CheckRecord
Source§fn clone(&self) -> CheckRecord
fn clone(&self) -> CheckRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CheckRecord
impl Debug for CheckRecord
Source§impl PartialEq for CheckRecord
impl PartialEq for CheckRecord
impl StructuralPartialEq for CheckRecord
Auto Trait Implementations§
impl Freeze for CheckRecord
impl RefUnwindSafe for CheckRecord
impl Send for CheckRecord
impl Sync for CheckRecord
impl Unpin for CheckRecord
impl UnsafeUnpin for CheckRecord
impl UnwindSafe for CheckRecord
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