#[non_exhaustive]pub struct FacilityDraft<'a> {
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub object_type: Option<&'a str>,
pub placement: Option<EntityId>,
pub long_name: Option<&'a str>,
pub composition: Option<&'a str>,
pub usage: Option<&'a str>,
}Expand description
Attributes a facility shares with every spatial container.
#[non_exhaustive]: build it with FacilityDraft::new and the
setters.
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.name: Option<&'a str>IfcRoot.Name, slot 2.
description: Option<&'a str>IfcRoot.Description, slot 3.
object_type: Option<&'a str>IfcObject.ObjectType, slot 4. Names a USERDEFINED token.
placement: Option<EntityId>IfcProduct.ObjectPlacement, slot 5.
long_name: Option<&'a str>IfcSpatialElement.LongName, slot 7.
composition: Option<&'a str>IfcSpatialStructureElement.CompositionType, slot 8.
usage: Option<&'a str>UsageType, slot 9. Mandatory on a part, refused otherwise.
Implementations§
Source§impl<'a> FacilityDraft<'a>
impl<'a> FacilityDraft<'a>
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Set IfcRoot.Description.
Sourcepub fn object_type(self, value: &'a str) -> Self
pub fn object_type(self, value: &'a str) -> Self
Set IfcObject.ObjectType, which names a USERDEFINED token.
Sourcepub fn composition(self, value: &'a str) -> Self
pub fn composition(self, value: &'a str) -> Self
Set CompositionType, an IfcElementCompositionEnum token.
Trait Implementations§
Source§impl<'a> Clone for FacilityDraft<'a>
impl<'a> Clone for FacilityDraft<'a>
impl<'a> Copy for FacilityDraft<'a>
Source§impl<'a> Debug for FacilityDraft<'a>
impl<'a> Debug for FacilityDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for FacilityDraft<'a>
impl<'a> RefUnwindSafe for FacilityDraft<'a>
impl<'a> Send for FacilityDraft<'a>
impl<'a> Sync for FacilityDraft<'a>
impl<'a> Unpin for FacilityDraft<'a>
impl<'a> UnsafeUnpin for FacilityDraft<'a>
impl<'a> UnwindSafe for FacilityDraft<'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