#[non_exhaustive]pub struct RelationshipRootDraft {
pub global_id: String,
pub owner_history: Option<EntityId>,
pub name: Option<String>,
pub description: Option<String>,
}Expand description
Staged IfcRoot-level attributes shared by every staged structural relationship.
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.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.
Implementations§
Source§impl RelationshipRootDraft
impl RelationshipRootDraft
Sourcepub fn new(global_id: impl Into<String>) -> Self
pub fn new(global_id: impl Into<String>) -> 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.
Trait Implementations§
Source§impl Clone for RelationshipRootDraft
impl Clone for RelationshipRootDraft
Source§impl Debug for RelationshipRootDraft
impl Debug for RelationshipRootDraft
Auto Trait Implementations§
impl Freeze for RelationshipRootDraft
impl RefUnwindSafe for RelationshipRootDraft
impl Send for RelationshipRootDraft
impl Sync for RelationshipRootDraft
impl Unpin for RelationshipRootDraft
impl UnsafeUnpin for RelationshipRootDraft
impl UnwindSafe for RelationshipRootDraft
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