#[non_exhaustive]pub enum ScheduleAuthoringError {
InvalidValue {
entity: &'static str,
attribute: &'static str,
expected: &'static str,
},
MultipleSchemas {
schemas: usize,
},
UnsupportedSchema {
schema: String,
},
EntityNotInSchema {
entity: &'static str,
schema: SchemaVersion,
},
AuthoringNotInSchema {
entity: &'static str,
attribute: &'static str,
schema: SchemaVersion,
},
AuthoringValueType {
entity: &'static str,
attribute: &'static str,
declared: &'static str,
schema: SchemaVersion,
},
AuthoringRequired {
entity: &'static str,
attribute: &'static str,
schema: SchemaVersion,
},
MissingReference {
entity: &'static str,
attribute: &'static str,
target: EntityId,
},
WrongReferenceType {
entity: &'static str,
attribute: &'static str,
target: EntityId,
actual: String,
expected: &'static str,
},
}Expand description
An authored value rejected before it reached the model.
Distinct from the anomalies above: those describe a file already written, this describes a draft refused so the file never says it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidValue
An attribute value is not valid for its slot.
Fields
MultipleSchemas
The model’s header declares several schemas; release-bound authoring binds to exactly one.
UnsupportedSchema
The model’s header declares one schema with no bundled table, so no layout can be trusted.
EntityNotInSchema
The model’s release does not declare this entity, such as
IfcEvent or IfcWorkCalendar in IFC2X3.
Fields
schema: SchemaVersionThe release the model declares.
AuthoringNotInSchema
A draft supplied a value for an attribute the model’s release does
not declare, such as an IFC2X3 IfcTask.PredefinedType. It is
refused rather than dropped.
Fields
schema: SchemaVersionThe release the model declares.
AuthoringValueType
A draft supplied a value the release’s declaration cannot hold, such
as text where IFC2X3 declares an IfcDateTimeSelect, a reference
where it declares an IfcTimeMeasure, or a token outside its
enumeration.
Fields
schema: SchemaVersionThe release the model declares.
AuthoringRequired
The release requires an attribute the call leaves unset, such as the
IFC2X3 IfcRoot.OwnerHistory (#202) or IfcTask.TaskId. It is
refused rather than written as $.
Fields
schema: SchemaVersionThe release the model declares.
MissingReference
A reference, such as a caller-supplied OwnerHistory, names an
entity that is neither in the model nor staged.
Fields
WrongReferenceType
A reference, such as a caller-supplied OwnerHistory, names an
entity of a type the release does not accept there.
Trait Implementations§
Source§impl Clone for ScheduleAuthoringError
impl Clone for ScheduleAuthoringError
Source§fn clone(&self) -> ScheduleAuthoringError
fn clone(&self) -> ScheduleAuthoringError
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 ScheduleAuthoringError
impl Debug for ScheduleAuthoringError
Source§impl Display for ScheduleAuthoringError
impl Display for ScheduleAuthoringError
impl Eq for ScheduleAuthoringError
Source§impl Error for ScheduleAuthoringError
impl Error for ScheduleAuthoringError
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()