Skip to main content

TaskTimeDraft

Struct TaskTimeDraft 

Source
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§

§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.

Trait Implementations§

Source§

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

Source§

fn clone(&self) -> Self

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() -> Self

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
Source§

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

Source§

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.

Source§

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.