#[non_exhaustive]pub struct AnalysisModelDraft {
pub global_id: String,
pub owner_history: Option<EntityId>,
pub name: Option<String>,
pub description: Option<String>,
pub object_type: Option<String>,
pub predefined_type: AnalysisModelType,
pub orientation_of_2d_plane: Option<EntityId>,
pub loaded_by: Vec<EntityId>,
pub result_groups: Vec<EntityId>,
pub shared_placement: Option<EntityId>,
}Expand description
Staged fields for creating an IfcStructuralAnalysisModel via stage_analysis_model.
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 when predefined_type is UserDefined.
predefined_type: AnalysisModelTypePredefinedType.
orientation_of_2d_plane: Option<EntityId>OrientationOf2DPlane, an IfcAxis2Placement3D reference.
loaded_by: Vec<EntityId>LoadedBy, IfcStructuralLoadGroup references; members must be unique.
result_groups: Vec<EntityId>HasResults, IfcStructuralResultGroup references; members must be unique.
SharedPlacement; only staged when the target schema declares the attribute.
Implementations§
Source§impl AnalysisModelDraft
impl AnalysisModelDraft
Sourcepub fn new(
global_id: impl Into<String>,
predefined_type: AnalysisModelType,
) -> Self
pub fn new( global_id: impl Into<String>, predefined_type: AnalysisModelType, ) -> 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 when
predefined_type is UserDefined.
Sourcepub fn orientation_of_2d_plane(self, value: EntityId) -> Self
pub fn orientation_of_2d_plane(self, value: EntityId) -> Self
Sets orientation_of_2d_plane: OrientationOf2DPlane, an
IfcAxis2Placement3D reference.
Sourcepub fn loaded_by(self, value: Vec<EntityId>) -> Self
pub fn loaded_by(self, value: Vec<EntityId>) -> Self
Sets loaded_by: LoadedBy, IfcStructuralLoadGroup references;
members must be unique.
Sourcepub fn result_groups(self, value: Vec<EntityId>) -> Self
pub fn result_groups(self, value: Vec<EntityId>) -> Self
Sets result_groups: HasResults, IfcStructuralResultGroup
references; members must be unique.
Sets shared_placement: SharedPlacement; only staged when the target
schema declares the attribute.