pub struct SchematronPattern {
pub pattern_type: SchematronPatternType,
pub test: String,
pub compiled_test: Option<CompiledExpr>,
pub text: String,
pub flag: Option<String>,
pub role: Option<String>,
pub id: Option<String>,
pub icon: Option<String>,
pub see: Option<String>,
pub diagnostics: Option<String>,
}Expand description
A single Schematron pattern — an assert or report assertion.
§UPSTREAM-PARITY
Mirrors libxml2’s internal schematron pattern representation.
Fields§
§pattern_type: SchematronPatternTypeThe type of this pattern (assert or report).
test: StringXPath test expression string.
compiled_test: Option<CompiledExpr>Compiled XPath test expression.
text: StringDiagnostic message text (may contain <name/> and <value-of/>).
flag: Option<String>Flag/severity attribute.
role: Option<String>Role attribute.
id: Option<String>ID attribute.
icon: Option<String>Icon attribute.
see: Option<String>See attribute.
diagnostics: Option<String>Diagnostics reference.
Implementations§
Source§impl SchematronPattern
impl SchematronPattern
Sourcepub fn new(
pattern_type: SchematronPatternType,
test: String,
text: String,
) -> Self
pub fn new( pattern_type: SchematronPatternType, test: String, text: String, ) -> Self
Create a new assert or report pattern.
Trait Implementations§
Source§impl Clone for SchematronPattern
impl Clone for SchematronPattern
Source§fn clone(&self) -> SchematronPattern
fn clone(&self) -> SchematronPattern
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 SchematronPattern
impl RefUnwindSafe for SchematronPattern
impl Send for SchematronPattern
impl Sync for SchematronPattern
impl Unpin for SchematronPattern
impl UnsafeUnpin for SchematronPattern
impl UnwindSafe for SchematronPattern
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