#[non_exhaustive]pub struct ActorDraft<'a> {
pub global_id: &'a str,
pub the_actor: EntityId,
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub object_type: Option<&'a str>,
pub predefined_type: Option<&'a str>,
}Expand description
Attributes of an IfcActor or IfcOccupant beyond the party.
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: &'a strGlobalId, a compressed IFC GUID.
the_actor: EntityIdTheActor: the party this record speaks for.
Required by the schema and not defaultable: a record naming nobody identifies no party.
name: Option<&'a str>Name.
description: Option<&'a str>Description.
object_type: Option<&'a str>ObjectType. Required when predefined_type is USERDEFINED.
predefined_type: Option<&'a str>PredefinedType, an IfcOccupantTypeEnum token.
IfcActor declares no predefined type; supplying one for a
plain actor is refused rather than dropped.
Implementations§
Source§impl<'a> ActorDraft<'a>
impl<'a> ActorDraft<'a>
Sourcepub fn new(global_id: &'a str, the_actor: EntityId) -> Self
pub fn new(global_id: &'a str, the_actor: EntityId) -> Self
Starts a draft with its required fields; the rest are unset.
Sourcepub fn name(self, value: &'a str) -> Self
pub fn name(self, value: &'a str) -> Self
Sets Self::name: Name.
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Sets Self::description: Description.
Sourcepub fn object_type(self, value: &'a str) -> Self
pub fn object_type(self, value: &'a str) -> Self
Sets Self::object_type: ObjectType. Required when predefined_type is USERDEFINED.
Sourcepub fn predefined_type(self, value: &'a str) -> Self
pub fn predefined_type(self, value: &'a str) -> Self
Sets Self::predefined_type: PredefinedType, an IfcOccupantTypeEnum token.
Trait Implementations§
Source§impl<'a> Clone for ActorDraft<'a>
impl<'a> Clone for ActorDraft<'a>
Source§fn clone(&self) -> ActorDraft<'a>
fn clone(&self) -> ActorDraft<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ActorDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for ActorDraft<'a>
impl<'a> RefUnwindSafe for ActorDraft<'a>
impl<'a> Send for ActorDraft<'a>
impl<'a> Sync for ActorDraft<'a>
impl<'a> Unpin for ActorDraft<'a>
impl<'a> UnsafeUnpin for ActorDraft<'a>
impl<'a> UnwindSafe for ActorDraft<'a>
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