#[non_exhaustive]pub struct CostValueDraft<'a> {
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub applicable_date: Option<DateTimeValue<'a>>,
pub fixed_until_date: Option<DateTimeValue<'a>>,
pub category: Option<&'a str>,
pub condition: Option<&'a str>,
pub kind: CostValueKind<'a>,
}Expand description
Draft for one supported IfcCostValue.
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.name: Option<&'a str>Optional display name.
description: Option<&'a str>Optional description.
applicable_date: Option<DateTimeValue<'a>>Optional date from which the value applies: IfcDate text in IFC4
and IFC4X3, an IfcDateTimeSelect record form in IFC2X3.
fixed_until_date: Option<DateTimeValue<'a>>Optional date through which the value is fixed, in the same forms.
category: Option<&'a str>Optional cost category (Category; IFC2X3’s CostType, which it
requires).
condition: Option<&'a str>Optional applicability condition.
kind: CostValueKind<'a>Supported scalar or composed value shape.
Implementations§
Source§impl CostValueDraft<'_>
impl CostValueDraft<'_>
Source§impl<'a> CostValueDraft<'a>
impl<'a> CostValueDraft<'a>
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Sets the description.
Sourcepub fn applicable_date(self, value: impl Into<DateTimeValue<'a>>) -> Self
pub fn applicable_date(self, value: impl Into<DateTimeValue<'a>>) -> Self
Sets the date from which the value applies: text, or an IFC2X3 record form.
Sourcepub fn fixed_until_date(self, value: impl Into<DateTimeValue<'a>>) -> Self
pub fn fixed_until_date(self, value: impl Into<DateTimeValue<'a>>) -> Self
Sets the date through which the value is fixed: text, or an IFC2X3 record form.
Sourcepub fn kind(self, value: CostValueKind<'a>) -> Self
pub fn kind(self, value: CostValueKind<'a>) -> Self
Sets the scalar or composed value shape.
Trait Implementations§
Source§impl<'a> Clone for CostValueDraft<'a>
impl<'a> Clone for CostValueDraft<'a>
Source§fn clone(&self) -> CostValueDraft<'a>
fn clone(&self) -> CostValueDraft<'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 CostValueDraft<'a>
Source§impl<'a> Debug for CostValueDraft<'a>
impl<'a> Debug for CostValueDraft<'a>
Auto Trait Implementations§
impl<'a> Freeze for CostValueDraft<'a>
impl<'a> RefUnwindSafe for CostValueDraft<'a>
impl<'a> Send for CostValueDraft<'a>
impl<'a> Sync for CostValueDraft<'a>
impl<'a> Unpin for CostValueDraft<'a>
impl<'a> UnsafeUnpin for CostValueDraft<'a>
impl<'a> UnwindSafe for CostValueDraft<'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