pub enum Severity {
Fatal,
Warning,
Other,
}Expand description
The severity of a finding, from its Schematron flag, as the official rule sets use
it, and from the manifest of the rule set: a failed assert without a flag has the
severity of its stylesheet’s unflagged-assert
(StylesheetEntry::unflagged_assert), and
the scenario a document matches gives the rule ids it lists their severities, whatever
their flags (Scenario).
Variants§
Fatal
flag="fatal": the document does not conform; the verdict is
Verdict::Invalid.
Warning
flag="warning": reported, the document still conforms.
Other
Any other flag, or none: reported, the document still conforms (unless the
validation fails closed: ValidateOptions::fail_closed).
Implementations§
Source§impl Severity
impl Severity
Sourcepub fn from_flag_fail_closed(flag: Option<&str>) -> Self
pub fn from_flag_fail_closed(flag: Option<&str>) -> Self
The severity a Schematron flag stands for when failing closed: as
Severity::from_flag, but any other flag, or none, is Severity::Fatal.