#[non_exhaustive]pub struct TaskDraft<'a> {
pub global_id: &'a str,
pub name: Option<&'a str>,
pub description: Option<&'a str>,
pub identification: Option<&'a str>,
pub long_description: Option<&'a str>,
pub status: Option<&'a str>,
pub work_method: Option<&'a str>,
pub is_milestone: bool,
pub priority: Option<i64>,
pub task_time: Option<EntityId>,
pub predefined_type: Option<&'a str>,
}Expand description
Authored fields for IfcTask.
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 strIfcRoot.GlobalId. Must be a valid IFC compressed GUID.
name: Option<&'a str>IfcRoot.Name, if given.
description: Option<&'a str>IfcRoot.Description, if given.
identification: Option<&'a str>IfcProcess.Identification, if given.
long_description: Option<&'a str>IfcProcess.LongDescription, if given.
status: Option<&'a str>IfcTask.Status, if given.
work_method: Option<&'a str>IfcTask.WorkMethod, if given.
is_milestone: boolIfcTask.IsMilestone. Required by the schema.
priority: Option<i64>IfcTask.Priority, if given. An IfcInteger in 0..=100.
task_time: Option<EntityId>IfcTask.TaskTime, an IfcTaskTime reference, if given.
predefined_type: Option<&'a str>IfcTask.PredefinedType, if given.
Implementations§
Source§impl<'a> TaskDraft<'a>
impl<'a> TaskDraft<'a>
Sourcepub fn new(global_id: &'a str) -> Self
pub fn new(global_id: &'a str) -> Self
Starts a draft for an IfcTask with its GlobalId and every optional
attribute unset, IsMilestone false.
Sourcepub fn description(self, value: &'a str) -> Self
pub fn description(self, value: &'a str) -> Self
Sets IfcRoot.Description.
Sourcepub fn identification(self, value: &'a str) -> Self
pub fn identification(self, value: &'a str) -> Self
Sets IfcProcess.Identification (IFC2X3 TaskId).
Sourcepub fn long_description(self, value: &'a str) -> Self
pub fn long_description(self, value: &'a str) -> Self
Sets IfcProcess.LongDescription.
Sourcepub fn work_method(self, value: &'a str) -> Self
pub fn work_method(self, value: &'a str) -> Self
Sets IfcTask.WorkMethod.
Sourcepub fn is_milestone(self, value: bool) -> Self
pub fn is_milestone(self, value: bool) -> Self
Sets IfcTask.IsMilestone.
Sourcepub fn task_time(self, value: EntityId) -> Self
pub fn task_time(self, value: EntityId) -> Self
Sets IfcTask.TaskTime, an IfcTaskTime reference.
Sourcepub fn predefined_type(self, value: &'a str) -> Self
pub fn predefined_type(self, value: &'a str) -> Self
Sets IfcTask.PredefinedType.