Skip to main content

TaskTimeDraft

Struct TaskTimeDraft 

Source
#[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>

Source

pub fn new() -> Self

Starts a draft for an IfcTaskTime with every attribute unset.

Source

pub fn name(self, value: &'a str) -> Self

Sets Name.

Source

pub fn duration_type(self, value: &'a str) -> Self

Sets DurationType.

Source

pub fn schedule_duration(self, value: &'a str) -> Self

Sets ScheduleDuration, an ISO 8601 duration.

Source

pub fn schedule_start(self, value: &'a str) -> Self

Sets ScheduleStart.

Source

pub fn schedule_finish(self, value: &'a str) -> Self

Sets ScheduleFinish.

Source

pub fn actual_start(self, value: &'a str) -> Self

Sets ActualStart.

Source

pub fn actual_finish(self, value: &'a str) -> Self

Sets ActualFinish.

Source

pub fn is_critical(self, value: bool) -> Self

Sets IsCritical.

Source

pub fn completion(self, value: f64) -> Self

Sets Completion, a percentage in 0..=100.

Trait Implementations§

Source§

impl<'a> Clone for TaskTimeDraft<'a>

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for TaskTimeDraft<'a>

Source§

impl<'a> Debug for TaskTimeDraft<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for TaskTimeDraft<'a>

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.