#[non_exhaustive]pub struct LoadGroupDraft {
pub global_id: String,
pub owner_history: Option<EntityId>,
pub name: Option<String>,
pub description: Option<String>,
pub object_type: Option<String>,
pub action_type: &'static str,
pub action_source: &'static str,
pub coefficient: Option<f64>,
pub purpose: Option<String>,
pub kind: LoadGroupKind,
}Expand description
Staged fields for stage_load_group.
A load group is an IfcGroup, not an IfcProduct: it declares
no ObjectPlacement or Representation, so this draft has no
fields for them rather than accepting and dropping them.
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 any of the three
enum attributes is USERDEFINED.
action_type: &'static strActionType, an IfcActionTypeEnum token.
action_source: &'static strActionSource, an IfcActionSourceTypeEnum token.
coefficient: Option<f64>Coefficient, a ratio applied to every load in the group.
purpose: Option<String>Purpose.
kind: LoadGroupKindWhich group form, and its form-specific attributes.
Implementations§
Source§impl LoadGroupDraft
impl LoadGroupDraft
Sourcepub fn new(
global_id: impl Into<String>,
action_type: &'static str,
action_source: &'static str,
kind: LoadGroupKind,
) -> Self
pub fn new( global_id: impl Into<String>, action_type: &'static str, action_source: &'static str, kind: LoadGroupKind, ) -> 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 any of the
three enum attributes is USERDEFINED.
Sourcepub fn coefficient(self, value: f64) -> Self
pub fn coefficient(self, value: f64) -> Self
Sets coefficient: Coefficient, a ratio applied to every load in the
group.