#[non_exhaustive]pub struct StructuralRootDraft {
pub global_id: String,
pub owner_history: Option<EntityId>,
pub name: Option<String>,
pub description: Option<String>,
pub object_type: Option<String>,
pub object_placement: Option<EntityId>,
pub representation: Option<EntityId>,
}Expand description
Staged IfcRoot-level attributes shared by every staged structural entity.
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.global_id: StringGlobalId; must parse as a 22-character IFC GUID.
owner_history: Option<EntityId>OwnerHistory, validated against the model/transaction if present.
name: Option<String>Name.
description: Option<String>Description.
object_type: Option<String>ObjectType; required non-blank on entities whose predefined type is USERDEFINED.
object_placement: Option<EntityId>ObjectPlacement, an IfcObjectPlacement reference.
representation: Option<EntityId>Representation, an IfcProductRepresentation reference.
Implementations§
Source§impl StructuralRootDraft
impl StructuralRootDraft
Sourcepub fn new(global_id: impl Into<String>) -> Self
pub fn new(global_id: impl Into<String>) -> Self
Starts a draft from its required fields; every other field is unset.
Sourcepub fn owner_history(self, value: EntityId) -> Self
pub fn owner_history(self, value: EntityId) -> Self
Sets owner_history: OwnerHistory, validated against the
model/transaction if present.
Sourcepub fn description(self, value: impl Into<String>) -> Self
pub fn description(self, value: impl Into<String>) -> Self
Sets description: Description.
Sourcepub fn object_type(self, value: impl Into<String>) -> Self
pub fn object_type(self, value: impl Into<String>) -> Self
Sets object_type: ObjectType; required non-blank on entities whose
predefined type is USERDEFINED.
Sourcepub fn object_placement(self, value: EntityId) -> Self
pub fn object_placement(self, value: EntityId) -> Self
Sets object_placement: ObjectPlacement, an IfcObjectPlacement
reference.
Sourcepub fn representation(self, value: EntityId) -> Self
pub fn representation(self, value: EntityId) -> Self
Sets representation: Representation, an IfcProductRepresentation
reference.