#[non_exhaustive]pub struct CostItemDraft<'a> {
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 predefined_type: Option<CostItemType>,
pub cost_values: &'a [EntityId],
}Expand description
Draft for a selected IFC4 IfcCostItem.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.global_id: &'a strCompressed IFC GlobalId; validated before staging.
name: Option<&'a str>Optional display name.
description: Option<&'a str>Optional description.
object_type: Option<&'a str>Optional user-defined object type.
identification: Option<&'a str>Optional domain identifier.
predefined_type: Option<CostItemType>Optional bounded item type.
cost_values: &'a [EntityId]Ordered existing or earlier-staged IfcCostValue references.
Implementations§
Source§impl<'a> CostItemDraft<'a>
impl<'a> CostItemDraft<'a>
Sourcepub fn new(global_id: &'a str) -> Self
pub fn new(global_id: &'a str) -> Self
Starts a draft for an IfcCostItem with its GlobalId and every optional
attribute unset.
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Sets the description.
Sourcepub fn object_type(self, value: &'a str) -> Self
pub fn object_type(self, value: &'a str) -> Self
Sets the user-defined object type.
Sourcepub fn identification(self, value: &'a str) -> Self
pub fn identification(self, value: &'a str) -> Self
Sets the domain identifier.
Sourcepub fn predefined_type(self, value: CostItemType) -> Self
pub fn predefined_type(self, value: CostItemType) -> Self
Sets the item type.
Sourcepub fn cost_values(self, value: &'a [EntityId]) -> Self
pub fn cost_values(self, value: &'a [EntityId]) -> Self
Sets the ordered IfcCostValue references.
Trait Implementations§
Source§impl<'a> Clone for CostItemDraft<'a>
impl<'a> Clone for CostItemDraft<'a>
Source§fn clone(&self) -> CostItemDraft<'a>
fn clone(&self) -> CostItemDraft<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for CostItemDraft<'a>
Source§impl<'a> Debug for CostItemDraft<'a>
impl<'a> Debug for CostItemDraft<'a>
Source§impl<'a> Default for CostItemDraft<'a>
impl<'a> Default for CostItemDraft<'a>
Source§fn default() -> CostItemDraft<'a>
fn default() -> CostItemDraft<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for CostItemDraft<'a>
impl<'a> RefUnwindSafe for CostItemDraft<'a>
impl<'a> Send for CostItemDraft<'a>
impl<'a> Sync for CostItemDraft<'a>
impl<'a> Unpin for CostItemDraft<'a>
impl<'a> UnsafeUnpin for CostItemDraft<'a>
impl<'a> UnwindSafe for CostItemDraft<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more