pub struct Inventory<'m, 's> { /* private fields */ }Expand description
A borrowed, schema-resolved IfcInventory projection.
IfcInventory is an IfcGroup: its members are resolved separately
through IfcRelAssignsToGroup (see items.rs), never carried on this
projection directly.
Implementations§
Source§impl<'m, 's> Inventory<'m, 's>
impl<'m, 's> Inventory<'m, 's>
Sourcepub fn name(&self) -> ResourceResult<Option<&'m str>>
pub fn name(&self) -> ResourceResult<Option<&'m str>>
The Name attribute, when authored.
Sourcepub fn description(&self) -> ResourceResult<Option<&'m str>>
pub fn description(&self) -> ResourceResult<Option<&'m str>>
The Description attribute, when authored.
Sourcepub fn predefined_type(&self) -> ResourceResult<Option<&'m str>>
pub fn predefined_type(&self) -> ResourceResult<Option<&'m str>>
The PredefinedType enumeration, when authored.
Under IFC2X3 this reads the required InventoryType, declared with
the same IfcInventoryTypeEnum; an unset value there is refused.
Sourcepub fn jurisdiction(&self) -> ResourceResult<Option<EntityId>>
pub fn jurisdiction(&self) -> ResourceResult<Option<EntityId>>
IfcActorSelect: an IfcPerson, IfcOrganization, or
IfcPersonAndOrganization. Required under IFC2X3, so an unset value
there is refused.
Sourcepub fn responsible_person_ids(&self) -> ResourceResult<Vec<EntityId>>
pub fn responsible_person_ids(&self) -> ResourceResult<Vec<EntityId>>
The ResponsiblePersons attribute, when authored. Required
(SET [1:?]) under IFC2X3, so an unset value there is refused.
Sourcepub fn last_update_date(&self) -> ResourceResult<Option<&'m str>>
pub fn last_update_date(&self) -> ResourceResult<Option<&'m str>>
The LastUpdateDate attribute (IfcDate text), when authored.
IFC2X3 declares it as an IfcCalendarDate entity, so this refuses
with ResourceError::NotInSchema there; read it with
Inventory::last_update_calendar_date.
Sourcepub fn last_update_calendar_date(&self) -> ResourceResult<EntityId>
pub fn last_update_calendar_date(&self) -> ResourceResult<EntityId>
IFC2X3 IfcInventory.LastUpdateDate: the required IfcCalendarDate
reference. ResourceError::NotInSchema under IFC4 and IFC4X3,
where the attribute is IfcDate text read by
Inventory::last_update_date.
Sourcepub fn current_value(&self) -> ResourceResult<Option<EntityId>>
pub fn current_value(&self) -> ResourceResult<Option<EntityId>>
The CurrentValue attribute, when authored.
Sourcepub fn original_value(&self) -> ResourceResult<Option<EntityId>>
pub fn original_value(&self) -> ResourceResult<Option<EntityId>>
The OriginalValue attribute, when authored.