pub struct Schema {
pub ns: Vec<NamespaceBinding>,
pub lets: Vec<LetBinding>,
pub default_phase: Option<String>,
pub phases: Vec<Phase>,
pub patterns: Vec<Pattern>,
pub diagnostics: Vec<Diagnostic>,
pub properties: Vec<Property>,
pub query_binding: Option<String>,
}Expand description
A parsed Schematron schema (Stage-1 subset, plus Stage-2 <let>).
Fields§
§ns: Vec<NamespaceBinding>§lets: Vec<LetBinding>§default_phase: Option<String>§phases: Vec<Phase>§patterns: Vec<Pattern>§diagnostics: Vec<Diagnostic>§properties: Vec<Property><properties><property id="..." .../>...</properties> (ISO
Schematron 2016 extension, issue #5) — generic, queryable metadata
this crate has no opinion on beyond parsing and exposing it; nothing
here affects assertion outcomes.
query_binding: Option<String>schema/@queryBinding, raw as declared (issue #6) — None if
absent (this crate’s default: XPath 1.0, same as every declared
binding this crate accepts; see crate::parser::parse, which
rejects any binding not equivalent to XPath 1.0 with
ParseError::UnsupportedQueryBinding rather than silently
evaluating test/context/select expressions as XPath 1.0 when
the schema declared something else, e.g. "xslt2").
Trait Implementations§
impl Eq for Schema
impl StructuralPartialEq for Schema
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnsafeUnpin for Schema
impl UnwindSafe for Schema
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