#[non_exhaustive]pub struct OccurrenceDraft<'a> {
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub object_type: Option<&'a str>,
pub placement: Option<EntityId>,
pub representation: Option<EntityId>,
pub tag: Option<&'a str>,
pub shape_type: Option<&'a str>,
pub nominal_diameter: Option<f64>,
pub cross_section_area: Option<f64>,
pub bar_role: Option<&'a str>,
pub longitudinal_bars: Option<MeshBars>,
pub transverse_bars: Option<MeshBars>,
}Expand description
Attributes of an occurrence: those every class shares, and the few that one class requires on top.
The struct is #[non_exhaustive]: build it with
OccurrenceDraft::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
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<&'a str>Name.
description: Option<&'a str>Description.
object_type: Option<&'a str>ObjectType; required when PredefinedType is USERDEFINED.
placement: Option<EntityId>ObjectPlacement.
representation: Option<EntityId>Representation.
tag: Option<&'a str>Tag, slot 7 on every class in this catalogue.
shape_type: Option<&'a str>ShapeType of an IFC2X3 IfcRamp, IfcRoof or IfcStair, a token
of that release’s enumeration; required there.
nominal_diameter: Option<f64>NominalDiameter of an IfcReinforcingBar or IfcTendon, an
IfcPositiveLengthMeasure; required in IFC2X3.
cross_section_area: Option<f64>CrossSectionArea of an IfcReinforcingBar or IfcTendon, an
IfcAreaMeasure; required in IFC2X3.
bar_role: Option<&'a str>BarRole of an IFC2X3 IfcReinforcingBar, an
IfcReinforcingBarRoleEnum token; required there.
longitudinal_bars: Option<MeshBars>The longitudinal bars of an IfcReinforcingMesh; required in
IFC2X3.
transverse_bars: Option<MeshBars>The transverse bars of an IfcReinforcingMesh; required in IFC2X3.
Implementations§
Source§impl<'a> OccurrenceDraft<'a>
impl<'a> OccurrenceDraft<'a>
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 representation(self, value: EntityId) -> Self
pub fn representation(self, value: EntityId) -> Self
Sets Representation.
Sourcepub fn shape_type(self, value: &'a str) -> Self
pub fn shape_type(self, value: &'a str) -> Self
Sets the IFC2X3 ShapeType.
Sourcepub fn nominal_diameter(self, value: f64) -> Self
pub fn nominal_diameter(self, value: f64) -> Self
Sets NominalDiameter.
Sourcepub fn cross_section_area(self, value: f64) -> Self
pub fn cross_section_area(self, value: f64) -> Self
Sets CrossSectionArea.
Sourcepub fn longitudinal_bars(self, value: MeshBars) -> Self
pub fn longitudinal_bars(self, value: MeshBars) -> Self
Sets the longitudinal bars of a mesh.
Sourcepub fn transverse_bars(self, value: MeshBars) -> Self
pub fn transverse_bars(self, value: MeshBars) -> Self
Sets the transverse bars of a mesh.
Trait Implementations§
Source§impl<'a> Clone for OccurrenceDraft<'a>
impl<'a> Clone for OccurrenceDraft<'a>
Source§fn clone(&self) -> OccurrenceDraft<'a>
fn clone(&self) -> OccurrenceDraft<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more