#[non_exhaustive]pub struct ActionDraft {
pub root: StructuralRootDraft,
pub applied_load: EntityId,
pub coordinate_system: CoordinateSystem,
pub destabilizing_load: Option<bool>,
pub caused_by: Option<EntityId>,
pub kind: ActionDraftKind,
pub varying: Option<VaryingActionDraft>,
}Expand description
Staged fields for creating an IfcStructuralAction via stage_action.
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.root: StructuralRootDraftIfcRoot attributes shared with other staged structural entities.
applied_load: EntityIdAppliedLoad; must reference a load type compatible with kind.
coordinate_system: CoordinateSystemGlobalOrLocal.
destabilizing_load: Option<bool>DestabilizingLoad; required when the target schema (IFC2X3) declares it mandatory.
caused_by: Option<EntityId>CausedBy; only staged when the target schema declares the attribute.
kind: ActionDraftKindWhich IfcStructuralAction subtype to create, and its subtype-specific attributes.
varying: Option<VaryingActionDraft>Varying-load attributes; when set, a ActionDraftKind::Linear or
ActionDraftKind::Planar kind stages the IFC2X3 varying subtype.
Implementations§
Source§impl ActionDraft
impl ActionDraft
Sourcepub fn new(
root: StructuralRootDraft,
applied_load: EntityId,
coordinate_system: CoordinateSystem,
kind: ActionDraftKind,
) -> Self
pub fn new( root: StructuralRootDraft, applied_load: EntityId, coordinate_system: CoordinateSystem, kind: ActionDraftKind, ) -> Self
Starts a draft from its required fields; every other field is unset.
Sourcepub fn destabilizing_load(self, value: bool) -> Self
pub fn destabilizing_load(self, value: bool) -> Self
Sets destabilizing_load: DestabilizingLoad; required when the target
schema (IFC2X3) declares it mandatory.
Sourcepub fn caused_by(self, value: EntityId) -> Self
pub fn caused_by(self, value: EntityId) -> Self
Sets caused_by: CausedBy; only staged when the target schema
declares the attribute.
Sourcepub fn varying(self, value: VaryingActionDraft) -> Self
pub fn varying(self, value: VaryingActionDraft) -> Self
Sets varying: stage the IFC2X3 varying subtype of a linear or
planar action with these attributes.
Trait Implementations§
Source§impl Clone for ActionDraft
impl Clone for ActionDraft
Source§fn clone(&self) -> ActionDraft
fn clone(&self) -> ActionDraft
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more