#[non_exhaustive]pub enum SchemaGap {
Schema(SchemaResolutionError),
NotInSchema(NotInSchema),
}Expand description
Why a per-attribute accessor bound to the model’s declared release could not produce a value.
Reading an attribute that varies by release (e.g. IfcZone.LongName,
absent in IFC2X3) needs the model’s release resolved first. Either step
can fail: the model’s own FILE_SCHEMA may not resolve at all
(SchemaResolutionError, see crate::schema_of), or it may resolve
to a release that simply does not declare the attribute
(NotInSchema). Both are reported through this one error so a caller
has a single type to match on.
#[non_exhaustive]: new attribute-accessor call sites reuse this type,
and adding one must not be a breaking change for existing matches.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Schema(SchemaResolutionError)
The model’s declared schema could not be resolved.
NotInSchema(NotInSchema)
The resolved release does not declare this attribute for this entity.
Trait Implementations§
impl Eq for SchemaGap
Source§impl Error for SchemaGap
impl Error for SchemaGap
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()