pub struct ValidationIssue {
pub message: String,
pub line: Option<u32>,
pub column: Option<u32>,
pub path: String,
pub kind: ValidationKind,
pub expected: Vec<String>,
pub value: Option<String>,
pub type_name: Option<String>,
}Expand description
One validation problem discovered while walking an instance document.
Fields§
§message: String§line: Option<u32>§column: Option<u32>§path: StringXPath-ish locator into the instance document — e.g.
/invoice/items/item[3]/@price. Empty string at the document root.
kind: ValidationKind§expected: Vec<String>Element names the content model expected at an
UnexpectedElement failure —
used by the libxml2-compat shim to render “Expected is ( … )”.
Empty for other kinds.
value: Option<String>The offending lexical value for a
TypeMismatch; lets the shim
render libxml2’s “‘value’ is not a valid value …”.
type_name: Option<String>The simple type’s name (e.g. "xs:integer") for a datatype
mismatch — the “atomic type ‘xs:integer’” in libxml2’s wording.
Trait Implementations§
Source§impl Clone for ValidationIssue
impl Clone for ValidationIssue
Source§fn clone(&self) -> ValidationIssue
fn clone(&self) -> ValidationIssue
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 moreSource§impl Debug for ValidationIssue
impl Debug for ValidationIssue
Auto Trait Implementations§
impl Freeze for ValidationIssue
impl RefUnwindSafe for ValidationIssue
impl Send for ValidationIssue
impl Sync for ValidationIssue
impl Unpin for ValidationIssue
impl UnsafeUnpin for ValidationIssue
impl UnwindSafe for ValidationIssue
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