#[non_exhaustive]pub enum XmlError {
UnsupportedEncoding {
part: String,
encoding: String,
},
MalformedPart {
part: String,
message: String,
},
NoRoot {
part: String,
},
MultipleRoots {
part: String,
},
}Expand description
XML error type.
Raised while a DOCX part is parsed into the document model.
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.
UnsupportedEncoding
The part uses an encoding the pipeline does not support.
MalformedPart
The part is not well formed.
Fields
NoRoot
The part has no root element.
MultipleRoots
The part has more than one root element.
Trait Implementations§
Source§impl Error for XmlError
impl Error for XmlError
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 Forget for XmlError
impl Freeze for XmlError
impl Move for XmlError
impl RefUnwindSafe for XmlError
impl Send for XmlErrorwhere
RawVecInner: Send,
impl Sync for XmlErrorwhere
RawVecInner: Sync,
impl Unpin for XmlError
impl UnsafeUnpin for XmlError
impl UnwindSafe for XmlErrorwhere
RawVecInner: UnwindSafe,
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