#[non_exhaustive]pub enum ValidateError {
UnknownSchema(String),
UnbundledSchema(String),
NoSchemaDeclared,
}Expand description
Validation could not be performed.
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.
UnknownSchema(String)
The FILE_SCHEMA token is not a schema version this crate recognises.
Carries the token as written, so the caller can report it verbatim.
UnbundledSchema(String)
A recognised schema version for which this build bundles no tables.
Separate from Self::UnknownSchema because the remedy differs: an
unknown token usually means a malformed or non-IFC file, while an
unbundled schema is a known gap in this build. Reporting both as
“unknown” would hide which one a user is hitting.
NoSchemaDeclared
The file declares no schema at all.
Trait Implementations§
Source§impl Clone for ValidateError
impl Clone for ValidateError
Source§impl Debug for ValidateError
impl Debug for ValidateError
Source§impl Display for ValidateError
impl Display for ValidateError
impl Eq for ValidateError
Source§impl Error for ValidateError
impl Error for ValidateError
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()
Source§impl PartialEq for ValidateError
impl PartialEq for ValidateError
impl StructuralPartialEq for ValidateError
Auto Trait Implementations§
impl Freeze for ValidateError
impl RefUnwindSafe for ValidateError
impl Send for ValidateError
impl Sync for ValidateError
impl Unpin for ValidateError
impl UnsafeUnpin for ValidateError
impl UnwindSafe for ValidateError
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