pub struct Approval<'m> { /* private fields */ }Expand description
Strict borrowed projection, read against one release.
Implementations§
Source§impl<'m> Approval<'m>
impl<'m> Approval<'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> Approval<'m>
impl<'m> Approval<'m>
Sourcepub fn identifier(self) -> ApprovalResult<Option<&'m str>>
pub fn identifier(self) -> ApprovalResult<Option<&'m str>>
Optional approval identifier (required in IFC2X3).
Sourcepub fn name(self) -> ApprovalResult<Option<&'m str>>
pub fn name(self) -> ApprovalResult<Option<&'m str>>
Optional approval name (required in IFC2X3).
Sourcepub fn description(self) -> ApprovalResult<Option<&'m str>>
pub fn description(self) -> ApprovalResult<Option<&'m str>>
Optional description.
Sourcepub fn time_of_approval(self) -> ApprovalResult<Option<&'m str>>
pub fn time_of_approval(self) -> ApprovalResult<Option<&'m str>>
Optional authored approval time, IFC4/IFC4X3 IfcDateTime text.
IFC2X3’s ApprovalDateTime (which IFC4 renamed to it) is an
IfcDateTimeSelect record: that is StructuredValue with the
record’s id, never read as text.
Sourcepub fn status(self) -> ApprovalResult<Option<&'m str>>
pub fn status(self) -> ApprovalResult<Option<&'m str>>
Optional status label. NotInSchema in IFC2X3.
Sourcepub fn level(self) -> ApprovalResult<Option<&'m str>>
pub fn level(self) -> ApprovalResult<Option<&'m str>>
Optional approval level label. NotInSchema in IFC2X3.
Sourcepub fn qualifier(self) -> ApprovalResult<Option<&'m str>>
pub fn qualifier(self) -> ApprovalResult<Option<&'m str>>
Optional qualifier text. NotInSchema in IFC2X3.
Sourcepub fn requesting_approval(self) -> ApprovalResult<Option<EntityId>>
pub fn requesting_approval(self) -> ApprovalResult<Option<EntityId>>
Optional requesting actor-select reference. NotInSchema in IFC2X3,
which relates actors through IfcApprovalActorRelationship.
Sourcepub fn giving_approval(self) -> ApprovalResult<Option<EntityId>>
pub fn giving_approval(self) -> ApprovalResult<Option<EntityId>>
Optional giving actor-select reference. NotInSchema in IFC2X3.