#[non_exhaustive]pub enum ControlKind {
Permit,
ProjectOrder,
ActionRequest,
PerformanceHistory,
}Expand description
Which control is being staged.
A single enum rather than four writers: the four differ only in
type name, predefined-type enum, and whether they carry the
Status/LongDescription tail. Four near-identical functions
would drift apart on the next schema revision.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Permit
IfcPermit: authorisation to proceed.
ProjectOrder
IfcProjectOrder: an instruction to carry work out.
ActionRequest
IfcActionRequest: a request that work be done.
PerformanceHistory
IfcPerformanceHistory: recorded in-use behaviour.
Implementations§
Source§impl ControlKind
impl ControlKind
Sourcepub const fn type_name(self) -> &'static str
pub const fn type_name(self) -> &'static str
STEP type name, upper-case as the catalogue stores it.
Upper-case because Entity::new does not normalise and the
model indexes by the stored string.
Sourcepub fn from_type_name(type_name: &str) -> Option<Self>
pub fn from_type_name(type_name: &str) -> Option<Self>
The kind whose STEP type name is type_name, compared without
regard to case; None for any other entity, including the
IfcControl subtypes owned by ifc-cost and ifc-schedule.
Trait Implementations§
Source§impl Clone for ControlKind
impl Clone for ControlKind
Source§fn clone(&self) -> ControlKind
fn clone(&self) -> ControlKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more