pub struct ApprovalAssignment<'m> { /* private fields */ }Expand description
Strict borrowed projection, read against one release.
Implementations§
Source§impl<'m> ApprovalAssignment<'m>
impl<'m> ApprovalAssignment<'m>
Sourcepub fn try_new(
id: EntityId,
entity: &'m Entity,
release: SchemaVersion,
) -> ApprovalResult<Self>
pub fn try_new( id: EntityId, entity: &'m Entity, release: SchemaVersion, ) -> ApprovalResult<Self>
Construct from an entity of the exact expected kind, read
against release.
ApprovalView binds the model’s declared release; use this
when the release is known some other way.
§Errors
WrongEntityType for another entity, UnsupportedSchema
for a release this crate is not verified against (IFC4X1,
IFC4X2), and EntityNotInSchema for an entity the release
does not declare.
Sourcepub const fn release(self) -> SchemaVersion
pub const fn release(self) -> SchemaVersion
The release this projection reads against.
Source§impl<'m> ApprovalAssignment<'m>
impl<'m> ApprovalAssignment<'m>
Sourcepub fn global_id(self) -> ApprovalResult<&'m str>
pub fn global_id(self) -> ApprovalResult<&'m str>
Root GlobalId.
Sourcepub fn name(self) -> ApprovalResult<Option<&'m str>>
pub fn name(self) -> ApprovalResult<Option<&'m str>>
Optional relationship name.
Sourcepub fn description(self) -> ApprovalResult<Option<&'m str>>
pub fn description(self) -> ApprovalResult<Option<&'m str>>
Optional relationship description.
Related definition-select targets (IfcRoot under WR21 in IFC2X3).
Sourcepub fn relating_approval(self) -> ApprovalResult<EntityId>
pub fn relating_approval(self) -> ApprovalResult<EntityId>
Relating approval.
Trait Implementations§
Source§impl<'m> Clone for ApprovalAssignment<'m>
impl<'m> Clone for ApprovalAssignment<'m>
impl<'m> Copy for ApprovalAssignment<'m>
Auto Trait Implementations§
impl<'m> Freeze for ApprovalAssignment<'m>
impl<'m> RefUnwindSafe for ApprovalAssignment<'m>
impl<'m> Send for ApprovalAssignment<'m>
impl<'m> Sync for ApprovalAssignment<'m>
impl<'m> Unpin for ApprovalAssignment<'m>
impl<'m> UnsafeUnpin for ApprovalAssignment<'m>
impl<'m> UnwindSafe for ApprovalAssignment<'m>
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