pub struct DocumentInformation<'m> { /* private fields */ }Expand description
Borrowed projection of an IFCDOCUMENTINFORMATION entity.
Projections handed out by a crate::ClassificationView read against
the release the model declares (IFC2X3, IFC4 or IFC4X3); one built with
try_new has no model and reads against IFC4, as in 0.2.0.
Implementations§
Source§impl<'m> DocumentInformation<'m>
impl<'m> DocumentInformation<'m>
Sourcepub fn try_new(id: EntityId, entity: &'m Entity) -> ClassificationResult<Self>
pub fn try_new(id: EntityId, entity: &'m Entity) -> ClassificationResult<Self>
Project entity as IFCDOCUMENTINFORMATION, checking its runtime type; fails with WrongEntityType if it is not.
Without a model there is no header to bind, so the projection reads against IFC4. Use the view’s lookups to read another release.
Source§impl<'m> DocumentInformation<'m>
impl<'m> DocumentInformation<'m>
Sourcepub fn identification(self) -> ClassificationResult<&'m str>
pub fn identification(self) -> ClassificationResult<&'m str>
The required Identification code of the document.
Sourcepub fn name(self) -> ClassificationResult<&'m str>
pub fn name(self) -> ClassificationResult<&'m str>
The required Name of the document.
Sourcepub fn description(self) -> ClassificationResult<Option<&'m str>>
pub fn description(self) -> ClassificationResult<Option<&'m str>>
The Description of the document, when authored.
Sourcepub fn location(self) -> ClassificationResult<Option<&'m str>>
pub fn location(self) -> ClassificationResult<Option<&'m str>>
The Location (e.g. a URI) of the document, when authored.
Sourcepub fn purpose(self) -> ClassificationResult<Option<&'m str>>
pub fn purpose(self) -> ClassificationResult<Option<&'m str>>
The Purpose the document serves, when authored.
Sourcepub fn intended_use(self) -> ClassificationResult<Option<&'m str>>
pub fn intended_use(self) -> ClassificationResult<Option<&'m str>>
The IntendedUse of the document, when authored.
Sourcepub fn scope(self) -> ClassificationResult<Option<&'m str>>
pub fn scope(self) -> ClassificationResult<Option<&'m str>>
The Scope of the document, when authored.
Sourcepub fn revision(self) -> ClassificationResult<Option<&'m str>>
pub fn revision(self) -> ClassificationResult<Option<&'m str>>
The Revision label of the document, when authored.
Sourcepub fn document_owner_id(self) -> ClassificationResult<Option<EntityId>>
pub fn document_owner_id(self) -> ClassificationResult<Option<EntityId>>
Id of the DocumentOwner (an IfcActorSelect), when authored.
Sourcepub fn editors(self) -> ClassificationResult<Option<Vec<EntityId>>>
pub fn editors(self) -> ClassificationResult<Option<Vec<EntityId>>>
Ids of the Editors (IfcActorSelect members) who worked on the document, when authored.
Sourcepub fn creation_time(self) -> ClassificationResult<Option<&'m str>>
pub fn creation_time(self) -> ClassificationResult<Option<&'m str>>
The CreationTime of the document, when authored.
Sourcepub fn last_revision_time(self) -> ClassificationResult<Option<&'m str>>
pub fn last_revision_time(self) -> ClassificationResult<Option<&'m str>>
The LastRevisionTime of the document, when authored.
Sourcepub fn electronic_format(self) -> ClassificationResult<Option<&'m str>>
pub fn electronic_format(self) -> ClassificationResult<Option<&'m str>>
The ElectronicFormat (e.g. a MIME type) of the document, when authored.
Sourcepub fn valid_from(self) -> ClassificationResult<Option<&'m str>>
pub fn valid_from(self) -> ClassificationResult<Option<&'m str>>
The ValidFrom date of the document, when authored.
Sourcepub fn valid_until(self) -> ClassificationResult<Option<&'m str>>
pub fn valid_until(self) -> ClassificationResult<Option<&'m str>>
The ValidUntil date of the document, when authored.
Sourcepub fn confidentiality(self) -> ClassificationResult<Option<&'m str>>
pub fn confidentiality(self) -> ClassificationResult<Option<&'m str>>
The Confidentiality enumerator of the document, when authored: one
of the bound release’s IfcDocumentConfidentialityEnum values
(PUBLIC, RESTRICTED, CONFIDENTIAL, PERSONAL, USERDEFINED,
NOTDEFINED in IFC2X3, IFC4 and IFC4X3).
Sourcepub fn status(self) -> ClassificationResult<Option<&'m str>>
pub fn status(self) -> ClassificationResult<Option<&'m str>>
The Status enumerator of the document, when authored: one of the
bound release’s IfcDocumentStatusEnum values (DRAFT, FINALDRAFT,
FINAL, REVISION, NOTDEFINED in IFC2X3, IFC4 and IFC4X3).