#[non_exhaustive]pub struct InventoryDraft<'a> {
pub global_id: &'a str,
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub object_type: Option<&'a str>,
pub predefined_type: Option<&'a str>,
pub jurisdiction: Option<EntityId>,
pub last_update_date: Option<&'a str>,
pub current_value: Option<EntityId>,
pub original_value: Option<EntityId>,
}Expand description
Draft for one IfcInventory: a counted collection of things.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.global_id: &'a strGlobalId.
name: Option<&'a str>Name.
description: Option<&'a str>Description.
object_type: Option<&'a str>ObjectType. Required when predefined_type is USERDEFINED.
predefined_type: Option<&'a str>PredefinedType, an IfcInventoryTypeEnum token.
jurisdiction: Option<EntityId>Jurisdiction, an IfcActorSelect.
last_update_date: Option<&'a str>LastUpdateDate, an ISO 8601 date written as given.
current_value: Option<EntityId>CurrentValue, an IfcCostValue.
original_value: Option<EntityId>OriginalValue, an IfcCostValue.
Implementations§
Source§impl<'a> InventoryDraft<'a>
impl<'a> InventoryDraft<'a>
Sourcepub fn new(global_id: &'a str) -> Self
pub fn new(global_id: &'a str) -> Self
Starts a draft with its required fields; the rest are unset.
Sourcepub fn name(self, value: &'a str) -> Self
pub fn name(self, value: &'a str) -> Self
Sets Self::name: Name.
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Sets Self::description: Description.
Sourcepub fn object_type(self, value: &'a str) -> Self
pub fn object_type(self, value: &'a str) -> Self
Sets Self::object_type: ObjectType. Required when predefined_type is USERDEFINED.
Sourcepub fn predefined_type(self, value: &'a str) -> Self
pub fn predefined_type(self, value: &'a str) -> Self
Sets Self::predefined_type: PredefinedType, an IfcInventoryTypeEnum token.
Sourcepub fn jurisdiction(self, value: EntityId) -> Self
pub fn jurisdiction(self, value: EntityId) -> Self
Sets Self::jurisdiction: Jurisdiction, an IfcActorSelect.
Sourcepub fn last_update_date(self, value: &'a str) -> Self
pub fn last_update_date(self, value: &'a str) -> Self
Sets Self::last_update_date: LastUpdateDate, an ISO 8601 date written as given.
Sourcepub fn current_value(self, value: EntityId) -> Self
pub fn current_value(self, value: EntityId) -> Self
Sets Self::current_value: CurrentValue, an IfcCostValue.
Sourcepub fn original_value(self, value: EntityId) -> Self
pub fn original_value(self, value: EntityId) -> Self
Sets Self::original_value: OriginalValue, an IfcCostValue.