pub struct SchematronRule {
pub context: String,
pub compiled_context: Option<CompiledExpr>,
pub patterns: Vec<SchematronPattern>,
pub id: Option<String>,
pub abstract_: bool,
pub extends: Vec<String>,
}Expand description
A Schematron rule — matches nodes via a context XPath expression.
§UPSTREAM-PARITY
Mirrors libxml2’s xmlSchematronRule internal structure.
Fields§
§context: StringXPath context expression.
compiled_context: Option<CompiledExpr>Compiled context XPath expression.
patterns: Vec<SchematronPattern>Assertions and reports in this rule.
id: Option<String>Rule ID.
abstract_: boolWhether this rule is abstract.
extends: Vec<String>Extended rules (from <extends>).
Implementations§
Trait Implementations§
Source§impl Clone for SchematronRule
impl Clone for SchematronRule
Source§fn clone(&self) -> SchematronRule
fn clone(&self) -> SchematronRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SchematronRule
impl RefUnwindSafe for SchematronRule
impl Send for SchematronRule
impl Sync for SchematronRule
impl Unpin for SchematronRule
impl UnsafeUnpin for SchematronRule
impl UnwindSafe for SchematronRule
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