#[non_exhaustive]pub struct ResultGroupDraft {
pub global_id: String,
pub owner_history: Option<EntityId>,
pub name: Option<String>,
pub description: Option<String>,
pub object_type: Option<String>,
pub theory_type: String,
pub result_for_load_group: Option<EntityId>,
pub is_linear: bool,
}Expand description
Authored fields for an IfcStructuralResultGroup.
A result group is an IfcGroup, not an IfcProduct: the schema
declares no ObjectPlacement or Representation, so this draft has
no fields for them rather than accepting and dropping them. Same
reasoning as crate::LoadGroupDraft.
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.
name: Option<String>Name.
description: Option<String>Description.
object_type: Option<String>ObjectType; required when theory_type is USERDEFINED.
theory_type: StringTheoryType, an IfcAnalysisTheoryTypeEnum token.
result_for_load_group: Option<EntityId>ResultForLoadGroup, an IfcStructuralLoadGroup reference.
is_linear: boolIsLinear.
Implementations§
Source§impl ResultGroupDraft
impl ResultGroupDraft
Sourcepub fn new(
global_id: impl Into<String>,
theory_type: impl Into<String>,
is_linear: bool,
) -> Self
pub fn new( global_id: impl Into<String>, theory_type: impl Into<String>, is_linear: bool, ) -> 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.
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 when theory_type is
USERDEFINED.
Sourcepub fn result_for_load_group(self, value: EntityId) -> Self
pub fn result_for_load_group(self, value: EntityId) -> Self
Sets result_for_load_group: ResultForLoadGroup, an
IfcStructuralLoadGroup reference.