pub struct SchematronValidCtxt {
pub schema: Option<SchematronSchema>,
pub errors: Vec<String>,
pub nb_errors: i32,
pub active_phase: Option<String>,
}Expand description
Validation context for Schematron schema validation.
Tracks errors and state during validation of an XML document against
a Schematron schema. Mirrors libxml2’s xmlSchematronValidCtxt.
Fields§
§schema: Option<SchematronSchema>The schema being validated against.
errors: Vec<String>Accumulated validation errors.
nb_errors: i32Number of validation errors.
active_phase: Option<String>Active phase ID (None = use default phase).
Implementations§
Source§impl SchematronValidCtxt
impl SchematronValidCtxt
Sourcepub fn record_error(&mut self, msg: String)
pub fn record_error(&mut self, msg: String)
Record a validation error.
Trait Implementations§
Source§impl Debug for SchematronValidCtxt
impl Debug for SchematronValidCtxt
Auto Trait Implementations§
impl Freeze for SchematronValidCtxt
impl RefUnwindSafe for SchematronValidCtxt
impl Send for SchematronValidCtxt
impl Sync for SchematronValidCtxt
impl Unpin for SchematronValidCtxt
impl UnsafeUnpin for SchematronValidCtxt
impl UnwindSafe for SchematronValidCtxt
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