#[non_exhaustive]pub struct ApprovalDraft<'a> {
pub identifier: Option<&'a str>,
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub time_of_approval: Option<DateTimeInput<'a>>,
pub status: Option<&'a str>,
pub level: Option<&'a str>,
pub qualifier: Option<&'a str>,
pub requesting_approval: Option<EntityId>,
pub giving_approval: Option<EntityId>,
}Expand description
Draft for one IfcApproval.
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.identifier: Option<&'a str>Optional identifier; at least this or name is required.
name: Option<&'a str>Optional name; at least this or identifier is required.
description: Option<&'a str>Optional description.
time_of_approval: Option<DateTimeInput<'a>>Optional approval time: IFC4/IFC4X3 IfcDateTime text, or an
existing or earlier-staged IFC2X3 IfcDateTimeSelect record
(ApprovalDateTime, which IFC2X3 requires).
status: Option<&'a str>Optional status label.
level: Option<&'a str>Optional level label.
qualifier: Option<&'a str>Optional qualifier text.
requesting_approval: Option<EntityId>Optional existing or earlier-staged IfcActorSelect target.
giving_approval: Option<EntityId>Optional existing or earlier-staged IfcActorSelect target.
Implementations§
Source§impl<'a> ApprovalDraft<'a>
impl<'a> ApprovalDraft<'a>
Sourcepub fn identifier(self, value: &'a str) -> Self
pub fn identifier(self, value: &'a str) -> Self
Sets Self::identifier: Optional identifier; at least this or name is required.
Sourcepub fn name(self, value: &'a str) -> Self
pub fn name(self, value: &'a str) -> Self
Sets Self::name: Optional name; at least this or identifier is required.
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Sets Self::description: Optional description.
Sourcepub fn time_of_approval(self, value: impl Into<DateTimeInput<'a>>) -> Self
pub fn time_of_approval(self, value: impl Into<DateTimeInput<'a>>) -> Self
Sets Self::time_of_approval: text, or an IFC2X3 date record.
Sourcepub fn status(self, value: &'a str) -> Self
pub fn status(self, value: &'a str) -> Self
Sets Self::status: Optional status label.
Sourcepub fn level(self, value: &'a str) -> Self
pub fn level(self, value: &'a str) -> Self
Sets Self::level: Optional level label.
Sourcepub fn qualifier(self, value: &'a str) -> Self
pub fn qualifier(self, value: &'a str) -> Self
Sets Self::qualifier: Optional qualifier text.
Sourcepub fn requesting_approval(self, value: EntityId) -> Self
pub fn requesting_approval(self, value: EntityId) -> Self
Sets Self::requesting_approval: Optional existing or earlier-staged IfcActorSelect target.
Sourcepub fn giving_approval(self, value: EntityId) -> Self
pub fn giving_approval(self, value: EntityId) -> Self
Sets Self::giving_approval: Optional existing or earlier-staged IfcActorSelect target.
Trait Implementations§
Source§impl<'a> Clone for ApprovalDraft<'a>
impl<'a> Clone for ApprovalDraft<'a>
Source§fn clone(&self) -> ApprovalDraft<'a>
fn clone(&self) -> ApprovalDraft<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more