#[non_exhaustive]pub struct Finding {
pub kind: FindingKind,
pub id: Option<String>,
pub flag: Option<String>,
pub severity: Severity,
pub role: Option<String>,
pub location: String,
pub context: Option<String>,
pub pattern: Option<String>,
pub test: String,
pub text: String,
}Expand description
A failed assert or a successful report of a stylesheet, as the SVRL report states it.
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.kind: FindingKindFailed assert or successful report.
id: Option<String>The rule id (BR-02), if the rule has one.
flag: Option<String>The Schematron flag (fatal, warning), if any.
severity: SeverityThe severity the flag stands for.
role: Option<String>The Schematron role, if any.
location: StringThe XPath of the node concerned, as the stylesheet writes it.
context: Option<String>The context of the rule that fired (its svrl:fired-rule/@context).
pattern: Option<String>The id of the pattern the rule belongs to (svrl:active-pattern/@id).
test: StringThe XPath test of the assert or report.
text: StringThe message, whitespace normalised.
Trait Implementations§
impl Eq for Finding
impl StructuralPartialEq for Finding
Auto Trait Implementations§
impl Forget for Finding
impl Freeze for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Finding
impl UnwindSafe for Finding
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