#[non_exhaustive]pub enum ValidateError {
UnknownSchema(String),
UnbundledSchema(String),
UnpublishedSchema(String),
NoSchemaDeclared,
}Expand description
Validation could not be performed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
UnpublishedSchema(String)
A release known by name whose normative EXPRESS schema is not
published (IFC4X3_TC1, IFC4X3_ADD1; #467), so no build has its
tables. Carries the token as written.
Not Self::UnknownSchema: the token is a real IFC release, and it
is not read with a neighbouring release’s tables by assumption. A
caller that accepts that risk passes the tables it chooses to
crate::validate itself; the report then carries the
header.schema.unpublished warning.
NoSchemaDeclared
The file declares no schema at all.
Trait Implementations§
Source§impl Clone for ValidateError
impl Clone for ValidateError
Source§fn clone(&self) -> ValidateError
fn clone(&self) -> ValidateError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()