#[non_exhaustive]pub struct AssetDraft<'a> {Show 13 fields
pub global_id: &'a str,
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub object_type: Option<&'a str>,
pub identification: Option<&'a str>,
pub original_value: Option<EntityId>,
pub current_value: Option<EntityId>,
pub total_replacement_cost: Option<EntityId>,
pub owner: Option<EntityId>,
pub user: Option<EntityId>,
pub responsible_person: Option<EntityId>,
pub incorporation_date: Option<&'a str>,
pub depreciated_value: Option<EntityId>,
}Expand description
Attributes of an IfcAsset.
Every attribute past the group slots is optional: an asset is the accounting view of things modelled elsewhere, and a register may know an item’s owner long before it knows its depreciated value.
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, a compressed IFC GUID.
name: Option<&'a str>Name.
description: Option<&'a str>Description.
object_type: Option<&'a str>ObjectType.
identification: Option<&'a str>Identification: the asset register’s own number.
original_value: Option<EntityId>OriginalValue, an IfcCostValue.
current_value: Option<EntityId>CurrentValue, an IfcCostValue.
total_replacement_cost: Option<EntityId>TotalReplacementCost, an IfcCostValue.
owner: Option<EntityId>Owner, an IfcActorSelect.
user: Option<EntityId>User, an IfcActorSelect.
responsible_person: Option<EntityId>ResponsiblePerson, an IfcPerson.
incorporation_date: Option<&'a str>IncorporationDate, an IfcDate in ISO 8601 form.
depreciated_value: Option<EntityId>DepreciatedValue, an IfcCostValue.
Implementations§
Source§impl<'a> AssetDraft<'a>
impl<'a> AssetDraft<'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.
Sourcepub fn identification(self, value: &'a str) -> Self
pub fn identification(self, value: &'a str) -> Self
Sets Self::identification: Identification: the asset register’s own number.
Sourcepub fn original_value(self, value: EntityId) -> Self
pub fn original_value(self, value: EntityId) -> Self
Sets Self::original_value: OriginalValue, an IfcCostValue.
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 total_replacement_cost(self, value: EntityId) -> Self
pub fn total_replacement_cost(self, value: EntityId) -> Self
Sets Self::total_replacement_cost: TotalReplacementCost, an IfcCostValue.
Sourcepub fn owner(self, value: EntityId) -> Self
pub fn owner(self, value: EntityId) -> Self
Sets Self::owner: Owner, an IfcActorSelect.
Sourcepub fn user(self, value: EntityId) -> Self
pub fn user(self, value: EntityId) -> Self
Sets Self::user: User, an IfcActorSelect.
Sourcepub fn responsible_person(self, value: EntityId) -> Self
pub fn responsible_person(self, value: EntityId) -> Self
Sets Self::responsible_person: ResponsiblePerson, an IfcPerson.
Sourcepub fn incorporation_date(self, value: &'a str) -> Self
pub fn incorporation_date(self, value: &'a str) -> Self
Sets Self::incorporation_date: IncorporationDate, an IfcDate in ISO 8601 form.
Sourcepub fn depreciated_value(self, value: EntityId) -> Self
pub fn depreciated_value(self, value: EntityId) -> Self
Sets Self::depreciated_value: DepreciatedValue, an IfcCostValue.
Trait Implementations§
Source§impl<'a> Clone for AssetDraft<'a>
impl<'a> Clone for AssetDraft<'a>
Source§fn clone(&self) -> AssetDraft<'a>
fn clone(&self) -> AssetDraft<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more