#[non_exhaustive]pub struct Report {
pub rule_set: RuleSetVersion,
pub document_uri: Option<String>,
pub schema_errors: Vec<SchemaError>,
pub stylesheets: Vec<StylesheetReport>,
}Expand description
The result of validating one document: the schema errors, then what each stylesheet of the rule set reported.
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.rule_set: RuleSetVersionThe rule set used.
document_uri: Option<String>The URI the document was given, if any (document-uri(/) in the stylesheets).
schema_errors: Vec<SchemaError>The schema validity errors, sorted by position; empty when the document is valid against the schema, or when the rule set has no schema.
stylesheets: Vec<StylesheetReport>One report per stylesheet, in the order they ran.
Implementations§
Source§impl Report
impl Report
Sourcepub fn verdict(&self) -> Verdict
pub fn verdict(&self) -> Verdict
Verdict::Valid if there is no schema error and no fatal finding.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Whether every stylesheet ran to the end (see StylesheetReport::failure).
Sourcepub fn is_valid(&self) -> bool
pub fn is_valid(&self) -> bool
Whether the verdict is Verdict::Valid.
Trait Implementations§
impl Eq for Report
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Forget for Report
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