#[non_exhaustive]pub enum XmlImportError {
LimitExceeded {
kind: &'static str,
limit: usize,
},
MissingRoot,
MultipleRoots,
Xml(String),
UnsupportedRoot(String),
MissingField {
path: String,
field: String,
},
AmbiguousPropertyType {
path: String,
},
UnsupportedPropertyType {
set: String,
property: String,
element: String,
},
UnsupportedQuantityType {
set: String,
quantity: String,
value: String,
},
UnsupportedSetType {
set: String,
value: String,
},
Applicability(ApplicabilityError),
}Expand description
Why a PSD or QTO document could not be imported.
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.
LimitExceeded
A declared resource limit was exceeded before parsing completed.
Fields
MissingRoot
The document contained no root element.
MultipleRoots
The document declared more than one root element.
Xml(String)
The document was not well-formed XML.
UnsupportedRoot(String)
The root element is neither PropertySetDef nor QtoSetDef.
MissingField
A required child element or attribute was absent.
Fields
AmbiguousPropertyType
A property declared zero or several property-type elements.
UnsupportedPropertyType
The property-type element is not one this importer maps.
Fields
UnsupportedQuantityType
The quantity-type token is not one this importer maps.
Fields
UnsupportedSetType
The property-set template type token is not recognised.
Applicability(ApplicabilityError)
The parsed applicability expression was itself invalid.
Trait Implementations§
Source§impl Debug for XmlImportError
impl Debug for XmlImportError
Source§impl Display for XmlImportError
impl Display for XmlImportError
Source§impl Error for XmlImportError
impl Error for XmlImportError
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()
Source§impl From<ApplicabilityError> for XmlImportError
impl From<ApplicabilityError> for XmlImportError
Source§fn from(source: ApplicabilityError) -> Self
fn from(source: ApplicabilityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for XmlImportError
impl RefUnwindSafe for XmlImportError
impl Send for XmlImportError
impl Sync for XmlImportError
impl Unpin for XmlImportError
impl UnsafeUnpin for XmlImportError
impl UnwindSafe for XmlImportError
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