#[non_exhaustive]pub struct ProcedureDraft<'a> {
pub global_id: &'a str,
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub object_type: Option<&'a str>,
pub identification: Option<&'a str>,
pub long_description: Option<&'a str>,
pub predefined_type: Option<&'a str>,
pub user_defined_procedure_type: Option<&'a str>,
}Expand description
Attributes of an IfcProcedure.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.global_id: &'a strGlobalId, a compressed IFC GUID.
name: Option<&'a str>Name. Required by HasName.
description: Option<&'a str>Description.
object_type: Option<&'a str>ObjectType. Required when predefined_type is USERDEFINED.
identification: Option<&'a str>Identification.
long_description: Option<&'a str>LongDescription.
predefined_type: Option<&'a str>PredefinedType, an IfcProcedureTypeEnum token.
user_defined_procedure_type: Option<&'a str>IFC2X3 UserDefinedProcedureType, which WR4 requires when
predefined_type is USERDEFINED. IFC4 and IFC4X3 do not declare
it (they name the kind in object_type), so only
create_procedure_with_owner_history
in an IFC2X3 model writes it.
Implementations§
Source§impl<'a> ProcedureDraft<'a>
impl<'a> ProcedureDraft<'a>
Sourcepub fn new(global_id: &'a str) -> Self
pub fn new(global_id: &'a str) -> Self
Starts a draft for an IfcProcedure with its GlobalId and every optional
attribute unset.
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Sets Description.
Sourcepub fn object_type(self, value: &'a str) -> Self
pub fn object_type(self, value: &'a str) -> Self
Sets ObjectType.
Sourcepub fn identification(self, value: &'a str) -> Self
pub fn identification(self, value: &'a str) -> Self
Sets Identification (IFC2X3 ProcedureID).
Sourcepub fn long_description(self, value: &'a str) -> Self
pub fn long_description(self, value: &'a str) -> Self
Sets LongDescription.
Sourcepub fn predefined_type(self, value: &'a str) -> Self
pub fn predefined_type(self, value: &'a str) -> Self
Sets PredefinedType (IFC2X3 ProcedureType).
Sourcepub fn user_defined_procedure_type(self, value: &'a str) -> Self
pub fn user_defined_procedure_type(self, value: &'a str) -> Self
Sets IFC2X3 UserDefinedProcedureType.
Trait Implementations§
Source§impl<'a> Clone for ProcedureDraft<'a>
impl<'a> Clone for ProcedureDraft<'a>
impl<'a> Copy for ProcedureDraft<'a>
Source§impl<'a> Debug for ProcedureDraft<'a>
impl<'a> Debug for ProcedureDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProcedureDraft<'a>
impl<'a> RefUnwindSafe for ProcedureDraft<'a>
impl<'a> Send for ProcedureDraft<'a>
impl<'a> Sync for ProcedureDraft<'a>
impl<'a> Unpin for ProcedureDraft<'a>
impl<'a> UnsafeUnpin for ProcedureDraft<'a>
impl<'a> UnwindSafe for ProcedureDraft<'a>
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