pub struct SchemaValidationContext { /* private fields */ }
Expand description

Wrapper on xmlSchemaValidCtxt

Implementations§

source§

impl SchemaValidationContext

source

pub fn from_parser( parser: &mut SchemaParserContext ) -> Result<Self, Vec<StructuredError>>

Create a schema validation context from a parser object

source

pub fn validate_document( &mut self, doc: &Document ) -> Result<(), Vec<StructuredError>>

Validates a given Document, that is to be tested to comply with the loaded XSD schema definition

source

pub fn validate_file(&mut self, path: &str) -> Result<(), Vec<StructuredError>>

Validates a given file from path for its compliance with the loaded XSD schema definition

source

pub fn validate_node(&mut self, node: &Node) -> Result<(), Vec<StructuredError>>

Validates a branch or leaf of a document given as a Node against the loaded XSD schema definition

source

pub fn drain_errors(&mut self) -> Vec<StructuredError>

Drains error log from errors that might have accumulated while validating something

source

pub fn as_ptr(&self) -> *mut _xmlSchemaValidCtxt

Return a raw pointer to the underlying xmlSchemaValidCtxt structure

Trait Implementations§

source§

impl Drop for SchemaValidationContext

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.