#[non_exhaustive]pub struct SpatialDraft<'a> {
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub long_name: Option<&'a str>,
pub composition: Option<&'a str>,
pub placement: Option<EntityId>,
pub interior_or_exterior: Option<&'a str>,
}Expand description
Authored fields shared by the spatial containers.
#[non_exhaustive]: build it with SpatialDraft::new and the
setters, so a field a later release needs can be added without breaking
callers.
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.
description: Option<&'a str>IfcRoot.Description.
long_name: Option<&'a str>IfcSpatialStructureElement.LongName.
composition: Option<&'a str>CompositionType, an IfcElementCompositionEnum token.
placement: Option<EntityId>ObjectPlacement, when the container is placed.
interior_or_exterior: Option<&'a str>IFC2X3 IfcSpace.InteriorOrExteriorSpace, an
IfcInternalOrExternalEnum token that release requires on a space
(#214). IFC4 and IFC4X3 do not declare it, so a value there, or on a
container other than a space, is refused rather than dropped.
Implementations§
Source§impl<'a> SpatialDraft<'a>
impl<'a> SpatialDraft<'a>
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Set IfcRoot.Description.
Sourcepub fn composition(self, value: &'a str) -> Self
pub fn composition(self, value: &'a str) -> Self
Set CompositionType, an IfcElementCompositionEnum token.
Sourcepub fn interior_or_exterior(self, value: &'a str) -> Self
pub fn interior_or_exterior(self, value: &'a str) -> Self
Set the IFC2X3 IfcSpace.InteriorOrExteriorSpace token.
Trait Implementations§
Source§impl<'a> Clone for SpatialDraft<'a>
impl<'a> Clone for SpatialDraft<'a>
impl<'a> Copy for SpatialDraft<'a>
Source§impl<'a> Debug for SpatialDraft<'a>
impl<'a> Debug for SpatialDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for SpatialDraft<'a>
impl<'a> RefUnwindSafe for SpatialDraft<'a>
impl<'a> Send for SpatialDraft<'a>
impl<'a> Sync for SpatialDraft<'a>
impl<'a> Unpin for SpatialDraft<'a>
impl<'a> UnsafeUnpin for SpatialDraft<'a>
impl<'a> UnwindSafe for SpatialDraft<'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