#[non_exhaustive]pub enum XmlValidationError {
MaxDepthExceeded(usize),
MaxAttributeCountExceeded(usize),
MaxTextLengthExceeded(usize),
MaxCommentLengthExceeded(usize),
MaxAttributeLengthExceeded(usize),
MaxChildCountExceeded(usize),
AttributeError(Box<dyn Error>),
MalformedDocument(Box<dyn Error>),
InvalidStructure(String),
}Expand description
Errors that can occur during XML validation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MaxDepthExceeded(usize)
The maximum allowed depth of the XML document has been exceeded.
MaxAttributeCountExceeded(usize)
The maximum allowed number of attributes in an element has been exceeded.
MaxTextLengthExceeded(usize)
The maximum allowed length of the text in an element has been exceeded.
MaxCommentLengthExceeded(usize)
The maximum allowed length of the comment in an element has been exceeded.
MaxAttributeLengthExceeded(usize)
The maximum allowed length of the attribute value has been exceeded.
MaxChildCountExceeded(usize)
The maximum allowed number of children in an element has been exceeded.
AttributeError(Box<dyn Error>)
The attribute cannot be read.
MalformedDocument(Box<dyn Error>)
The XML document is malformed.
InvalidStructure(String)
The XML document structure is invalid.
Trait Implementations§
Source§impl Debug for XmlValidationError
impl Debug for XmlValidationError
Source§impl Display for XmlValidationError
impl Display for XmlValidationError
Source§impl Error for XmlValidationError
impl Error for XmlValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for XmlValidationError
impl !Send for XmlValidationError
impl !Sync for XmlValidationError
impl !UnwindSafe for XmlValidationError
impl Freeze for XmlValidationError
impl Unpin for XmlValidationError
impl UnsafeUnpin for XmlValidationError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<C, T> Extract<T> for Cwhere
T: FromContext<C>,
impl<C, T> Extract<T> for Cwhere
T: FromContext<C>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more