#[non_exhaustive]pub struct PersonDraft<'a> {
pub identification: Option<&'a str>,
pub family_name: Option<&'a str>,
pub given_name: Option<&'a str>,
}Expand description
Authored fields for IfcPerson.
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.identification: Option<&'a str>IfcPerson.Identification.
family_name: Option<&'a str>IfcPerson.FamilyName.
given_name: Option<&'a str>IfcPerson.GivenName.
Implementations§
Source§impl<'a> PersonDraft<'a>
impl<'a> PersonDraft<'a>
Sourcepub fn identification(self, value: &'a str) -> Self
pub fn identification(self, value: &'a str) -> Self
Sets Self::identification: IfcPerson.Identification.
Sourcepub fn family_name(self, value: &'a str) -> Self
pub fn family_name(self, value: &'a str) -> Self
Sets Self::family_name: IfcPerson.FamilyName.
Sourcepub fn given_name(self, value: &'a str) -> Self
pub fn given_name(self, value: &'a str) -> Self
Sets Self::given_name: IfcPerson.GivenName.
Trait Implementations§
Source§impl<'a> Clone for PersonDraft<'a>
impl<'a> Clone for PersonDraft<'a>
Source§fn clone(&self) -> PersonDraft<'a>
fn clone(&self) -> PersonDraft<'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 PersonDraft<'a>
Source§impl<'a> Debug for PersonDraft<'a>
impl<'a> Debug for PersonDraft<'a>
Source§impl<'a> Default for PersonDraft<'a>
impl<'a> Default for PersonDraft<'a>
Source§fn default() -> PersonDraft<'a>
fn default() -> PersonDraft<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for PersonDraft<'a>
impl<'a> RefUnwindSafe for PersonDraft<'a>
impl<'a> Send for PersonDraft<'a>
impl<'a> Sync for PersonDraft<'a>
impl<'a> Unpin for PersonDraft<'a>
impl<'a> UnsafeUnpin for PersonDraft<'a>
impl<'a> UnwindSafe for PersonDraft<'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