#[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,
}Expand description
Staged fields for creating an IfcStructuralAction via stage_action.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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.
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.
Trait Implementations§
Source§impl Clone for ActionDraft
impl Clone for ActionDraft
Auto Trait Implementations§
impl Freeze for ActionDraft
impl RefUnwindSafe for ActionDraft
impl Send for ActionDraft
impl Sync for ActionDraft
impl Unpin for ActionDraft
impl UnsafeUnpin for ActionDraft
impl UnwindSafe for ActionDraft
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more