pub struct ProbePackReport {
pub total: usize,
pub passed: usize,
pub failed: usize,
pub results: Vec<ProbeRunResult>,
pub all_passed: bool,
}Expand description
Summary report produced by running a full probe pack.
§Example
use stygian_charon::probe::{run_probe_pack, challenge_probe_pack};
let report = run_probe_pack(&challenge_probe_pack());
assert_eq!(report.total, report.passed + report.failed);Fields§
§total: usizeTotal probes run.
passed: usizeProbes that passed.
failed: usizeProbes that failed.
results: Vec<ProbeRunResult>Individual results (sorted: failures first, then by category, then by name).
all_passed: boolWhether the full pack passed with no failures.
Implementations§
Source§impl ProbePackReport
impl ProbePackReport
Sourcepub fn failures(&self) -> Vec<&ProbeRunResult>
pub fn failures(&self) -> Vec<&ProbeRunResult>
Returns only the failed results.
Trait Implementations§
Source§impl Clone for ProbePackReport
impl Clone for ProbePackReport
Source§fn clone(&self) -> ProbePackReport
fn clone(&self) -> ProbePackReport
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 ProbePackReport
impl Debug for ProbePackReport
Source§impl<'de> Deserialize<'de> for ProbePackReport
impl<'de> Deserialize<'de> for ProbePackReport
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 ProbePackReport
impl PartialEq for ProbePackReport
Source§impl Serialize for ProbePackReport
impl Serialize for ProbePackReport
impl StructuralPartialEq for ProbePackReport
Auto Trait Implementations§
impl Freeze for ProbePackReport
impl RefUnwindSafe for ProbePackReport
impl Send for ProbePackReport
impl Sync for ProbePackReport
impl Unpin for ProbePackReport
impl UnsafeUnpin for ProbePackReport
impl UnwindSafe for ProbePackReport
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