pub struct AssertionReport {
pub total: usize,
pub passed: usize,
pub failed: usize,
pub results: Vec<AssertionResult>,
}Expand description
Aggregated assertion outcome summary.
This report is deterministic for deterministic inputs and includes per-expectation evidence references to aid failure triage.
Fields§
§total: usize§passed: usize§failed: usize§results: Vec<AssertionResult>Implementations§
Source§impl AssertionReport
impl AssertionReport
pub fn is_success(&self) -> bool
Trait Implementations§
Source§impl Clone for AssertionReport
impl Clone for AssertionReport
Source§fn clone(&self) -> AssertionReport
fn clone(&self) -> AssertionReport
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 AssertionReport
impl Debug for AssertionReport
Source§impl Default for AssertionReport
impl Default for AssertionReport
Source§fn default() -> AssertionReport
fn default() -> AssertionReport
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssertionReport
impl<'de> Deserialize<'de> for AssertionReport
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 PartialEq for AssertionReport
impl PartialEq for AssertionReport
Source§impl Serialize for AssertionReport
impl Serialize for AssertionReport
impl StructuralPartialEq for AssertionReport
Auto Trait Implementations§
impl Freeze for AssertionReport
impl RefUnwindSafe for AssertionReport
impl Send for AssertionReport
impl Sync for AssertionReport
impl Unpin for AssertionReport
impl UnsafeUnpin for AssertionReport
impl UnwindSafe for AssertionReport
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