#[non_exhaustive]pub struct TaskTimeDraft<'a> {
pub name: Option<&'a str>,
pub duration_type: Option<&'a str>,
pub schedule_duration: Option<&'a str>,
pub schedule_start: Option<&'a str>,
pub schedule_finish: Option<&'a str>,
pub actual_start: Option<&'a str>,
pub actual_finish: Option<&'a str>,
pub is_critical: Option<bool>,
pub completion: Option<f64>,
}Expand description
Authored fields for IfcTaskTime.
Durations are ISO 8601 duration strings and timestamps ISO 8601 datetimes, written exactly as given. Parsing them here would mean this crate owning calendar arithmetic it deliberately does not.
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>IfcPhysicalQuantity-style Name, slot 0.
duration_type: Option<&'a str>IfcTaskTime.DurationType, WORKTIME or ELAPSEDTIME.
schedule_duration: Option<&'a str>IfcTaskTime.ScheduleDuration, an ISO 8601 duration.
schedule_start: Option<&'a str>IfcTaskTime.ScheduleStart.
schedule_finish: Option<&'a str>IfcTaskTime.ScheduleFinish.
actual_start: Option<&'a str>IfcTaskTime.ActualStart.
actual_finish: Option<&'a str>IfcTaskTime.ActualFinish.
is_critical: Option<bool>IfcTaskTime.IsCritical.
completion: Option<f64>IfcTaskTime.Completion, a percentage in 0..=100.
Implementations§
Source§impl<'a> TaskTimeDraft<'a>
impl<'a> TaskTimeDraft<'a>
Sourcepub fn duration_type(self, value: &'a str) -> Self
pub fn duration_type(self, value: &'a str) -> Self
Sets DurationType.
Sourcepub fn schedule_duration(self, value: &'a str) -> Self
pub fn schedule_duration(self, value: &'a str) -> Self
Sets ScheduleDuration, an ISO 8601 duration.
Sourcepub fn schedule_start(self, value: &'a str) -> Self
pub fn schedule_start(self, value: &'a str) -> Self
Sets ScheduleStart.
Sourcepub fn schedule_finish(self, value: &'a str) -> Self
pub fn schedule_finish(self, value: &'a str) -> Self
Sets ScheduleFinish.
Sourcepub fn actual_start(self, value: &'a str) -> Self
pub fn actual_start(self, value: &'a str) -> Self
Sets ActualStart.
Sourcepub fn actual_finish(self, value: &'a str) -> Self
pub fn actual_finish(self, value: &'a str) -> Self
Sets ActualFinish.
Sourcepub fn is_critical(self, value: bool) -> Self
pub fn is_critical(self, value: bool) -> Self
Sets IsCritical.
Sourcepub fn completion(self, value: f64) -> Self
pub fn completion(self, value: f64) -> Self
Sets Completion, a percentage in 0..=100.
Trait Implementations§
Source§impl<'a> Clone for TaskTimeDraft<'a>
impl<'a> Clone for TaskTimeDraft<'a>
Source§fn clone(&self) -> TaskTimeDraft<'a>
fn clone(&self) -> TaskTimeDraft<'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 TaskTimeDraft<'a>
Source§impl<'a> Debug for TaskTimeDraft<'a>
impl<'a> Debug for TaskTimeDraft<'a>
Source§impl<'a> Default for TaskTimeDraft<'a>
impl<'a> Default for TaskTimeDraft<'a>
Source§fn default() -> TaskTimeDraft<'a>
fn default() -> TaskTimeDraft<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for TaskTimeDraft<'a>
impl<'a> RefUnwindSafe for TaskTimeDraft<'a>
impl<'a> Send for TaskTimeDraft<'a>
impl<'a> Sync for TaskTimeDraft<'a>
impl<'a> Unpin for TaskTimeDraft<'a>
impl<'a> UnsafeUnpin for TaskTimeDraft<'a>
impl<'a> UnwindSafe for TaskTimeDraft<'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