#[non_exhaustive]pub struct Report {
pub revision: String,
pub totals: Totals,
pub requirements: Vec<RequirementReport>,
}Expand description
A complete validation report for one trace against one registry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.revision: StringThe registry’s protocol revision (YYYY-MM-DD).
totals: TotalsAggregate counts.
requirements: Vec<RequirementReport>Per-requirement outcomes, in registry order.
Implementations§
Source§impl Report
impl Report
Sourcepub const fn has_errors(&self) -> bool
pub const fn has_errors(&self) -> bool
true when any requirement failed (errors, not warnings).
Sourcepub const fn has_warnings(&self) -> bool
pub const fn has_warnings(&self) -> bool
true when any SHOULD-level requirement produced findings.
Sourcepub const fn has_unsupported(&self) -> bool
pub const fn has_unsupported(&self) -> bool
true when the registry referenced checks this build does not implement.
Sourcepub fn render_human(&self) -> String
pub fn render_human(&self) -> String
Renders the human-readable form.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Report
impl<'de> Deserialize<'de> for Report
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
impl Eq for Report
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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