#[non_exhaustive]pub struct Report {
pub revision: String,
pub revision_mismatch: Option<Vec<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).
revision_mismatch: Option<Vec<String>>The revisions the session declared, when it declared some and
Self::revision is not among them — so the reader is told that these
findings judge the trace against rules it was not playing by.
Absent whenever there is nothing to say, which is the common case; see
crate::declared for what counts as a declaration and why the rule is
deliberately quiet.
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.
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