pub struct Person<'m, 's> { /* private fields */ }Expand description
A borrowed, schema-resolved IfcPerson projection.
Enforces IfcPerson.IdentifiablePerson (at least one of Identification,
FamilyName, GivenName is present) and IfcPerson.ValidSetOfNames
(MiddleNames requires FamilyName or GivenName).
Implementations§
Source§impl<'m, 's> Person<'m, 's>
impl<'m, 's> Person<'m, 's>
Sourcepub fn identification(&self) -> ResourceResult<Option<&'m str>>
pub fn identification(&self) -> ResourceResult<Option<&'m str>>
The Identification attribute, when authored.
Sourcepub fn family_name(&self) -> ResourceResult<Option<&'m str>>
pub fn family_name(&self) -> ResourceResult<Option<&'m str>>
The FamilyName attribute, when authored.
Sourcepub fn given_name(&self) -> ResourceResult<Option<&'m str>>
pub fn given_name(&self) -> ResourceResult<Option<&'m str>>
The GivenName attribute, when authored.
Sourcepub fn middle_names(&self) -> ResourceResult<Vec<&'m str>>
pub fn middle_names(&self) -> ResourceResult<Vec<&'m str>>
The MiddleNames attribute, when authored.
Sourcepub fn prefix_titles(&self) -> ResourceResult<Vec<&'m str>>
pub fn prefix_titles(&self) -> ResourceResult<Vec<&'m str>>
The PrefixTitles attribute, when authored.
Sourcepub fn suffix_titles(&self) -> ResourceResult<Vec<&'m str>>
pub fn suffix_titles(&self) -> ResourceResult<Vec<&'m str>>
The SuffixTitles attribute, when authored.
Sourcepub fn role_ids(&self) -> ResourceResult<Vec<EntityId>>
pub fn role_ids(&self) -> ResourceResult<Vec<EntityId>>
The Roles attribute: entity references, when authored.
Sourcepub fn roles(&self) -> ResourceResult<Vec<ActorRole<'m, 's>>>
pub fn roles(&self) -> ResourceResult<Vec<ActorRole<'m, 's>>>
The Roles attribute, resolved to projected IfcActorRole values.
Sourcepub fn address_ids(&self) -> ResourceResult<Vec<EntityId>>
pub fn address_ids(&self) -> ResourceResult<Vec<EntityId>>
The Addresses attribute, when authored.
Trait Implementations§
Auto Trait Implementations§
impl<'m, 's> Freeze for Person<'m, 's>
impl<'m, 's> RefUnwindSafe for Person<'m, 's>
impl<'m, 's> Send for Person<'m, 's>
impl<'m, 's> Sync for Person<'m, 's>
impl<'m, 's> Unpin for Person<'m, 's>
impl<'m, 's> UnsafeUnpin for Person<'m, 's>
impl<'m, 's> UnwindSafe for Person<'m, 's>
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