#[non_exhaustive]pub enum FacilityError {
MalformedGuid {
entity: &'static str,
offered: String,
},
UnknownToken {
entity: &'static str,
attribute: &'static str,
offered: String,
},
NoPredefinedType {
entity: &'static str,
},
MissingUsageType {
entity: &'static str,
},
UnexpectedUsageType {
entity: &'static str,
},
UserDefinedWithoutObjectType {
entity: &'static str,
attribute: &'static str,
},
Authoring(SpatialAuthoringError),
}Expand description
Why a facility was refused.
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.
MalformedGuid
GlobalId is absent or not a 22-character IFC GUID.
UnknownToken
The token is not in this class’s own enum.
Fields
NoPredefinedType
A class with no PredefinedType was offered one.
MissingUsageType
UsageType is mandatory on a part and was not supplied.
UnexpectedUsageType
UsageType was supplied for a class that declares none.
UserDefinedWithoutObjectType
USERDEFINED was chosen without the name it promises.
Fields
Authoring(SpatialAuthoringError)
Refused against the model’s declared release or its owner history,
by create_facility_with_owner_history (#202).
Trait Implementations§
Source§impl Clone for FacilityError
impl Clone for FacilityError
Source§impl Debug for FacilityError
impl Debug for FacilityError
Source§impl Display for FacilityError
impl Display for FacilityError
impl Eq for FacilityError
Source§impl Error for FacilityError
impl Error for FacilityError
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 FacilityError
impl PartialEq for FacilityError
impl StructuralPartialEq for FacilityError
Auto Trait Implementations§
impl Freeze for FacilityError
impl RefUnwindSafe for FacilityError
impl Send for FacilityError
impl Sync for FacilityError
impl Unpin for FacilityError
impl UnsafeUnpin for FacilityError
impl UnwindSafe for FacilityError
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