#[non_exhaustive]pub struct ActorRoleDraft<'a> {
pub role: &'a str,
pub user_defined_role: Option<&'a str>,
pub description: Option<&'a str>,
}Expand description
Draft for one IfcActorRole.
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.role: &'a strRole, an IfcRoleEnum token.
user_defined_role: Option<&'a str>UserDefinedRole. Required when role is USERDEFINED.
description: Option<&'a str>Description.
Implementations§
Source§impl<'a> ActorRoleDraft<'a>
impl<'a> ActorRoleDraft<'a>
Sourcepub fn user_defined_role(self, value: &'a str) -> Self
pub fn user_defined_role(self, value: &'a str) -> Self
Sets Self::user_defined_role: UserDefinedRole. Required when role is USERDEFINED.
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Sets Self::description: Description.
Trait Implementations§
Source§impl<'a> Clone for ActorRoleDraft<'a>
impl<'a> Clone for ActorRoleDraft<'a>
Source§fn clone(&self) -> ActorRoleDraft<'a>
fn clone(&self) -> ActorRoleDraft<'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 ActorRoleDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for ActorRoleDraft<'a>
impl<'a> RefUnwindSafe for ActorRoleDraft<'a>
impl<'a> Send for ActorRoleDraft<'a>
impl<'a> Sync for ActorRoleDraft<'a>
impl<'a> Unpin for ActorRoleDraft<'a>
impl<'a> UnsafeUnpin for ActorRoleDraft<'a>
impl<'a> UnwindSafe for ActorRoleDraft<'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