#[non_exhaustive]pub struct BoundaryDraft<'a> {
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub space: EntityId,
pub element: EntityId,
pub connection_geometry: Option<EntityId>,
pub physical_or_virtual: &'a str,
pub internal_or_external: &'a str,
pub parent: Option<EntityId>,
pub corresponding: Option<EntityId>,
}Expand description
Authored fields for a space boundary.
#[non_exhaustive]: build it with BoundaryDraft::new and the
setters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
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.
space: EntityIdRelatingSpace, an IfcSpaceBoundarySelect.
element: EntityIdRelatedBuildingElement, an IfcElement.
connection_geometry: Option<EntityId>ConnectionGeometry, if the boundary has a shape.
physical_or_virtual: &'a strPhysicalOrVirtualBoundary. Constrained by CorrectPhysOrVirt.
internal_or_external: &'a strInternalOrExternalBoundary.
parent: Option<EntityId>ParentBoundary. First and second levels only.
corresponding: Option<EntityId>CorrespondingBoundary. Second level only.
Implementations§
Source§impl<'a> BoundaryDraft<'a>
impl<'a> BoundaryDraft<'a>
Sourcepub fn new(
space: EntityId,
element: EntityId,
physical_or_virtual: &'a str,
internal_or_external: &'a str,
) -> Self
pub fn new( space: EntityId, element: EntityId, physical_or_virtual: &'a str, internal_or_external: &'a str, ) -> Self
A boundary of space formed by element, with the two enumeration
tokens the schema requires (PhysicalOrVirtualBoundary,
InternalOrExternalBoundary); every optional attribute unset.
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Set IfcRoot.Description.
Sourcepub fn connection_geometry(self, value: EntityId) -> Self
pub fn connection_geometry(self, value: EntityId) -> Self
Set ConnectionGeometry.
Sourcepub fn parent(self, value: EntityId) -> Self
pub fn parent(self, value: EntityId) -> Self
Set ParentBoundary (first and second levels only).
Sourcepub fn corresponding(self, value: EntityId) -> Self
pub fn corresponding(self, value: EntityId) -> Self
Set CorrespondingBoundary (second level only).