pub struct Task<'m> { /* private fields */ }Expand description
A borrowed view of an IfcTask.
Implementations§
Source§impl<'m> Task<'m>
impl<'m> Task<'m>
Sourcepub fn description(&self) -> Option<&'m str>
pub fn description(&self) -> Option<&'m str>
The short description.
Sourcepub fn identification(&self) -> Option<&'m str>
pub fn identification(&self) -> Option<&'m str>
The user-facing identification code, e.g. a WBS number.
Sourcepub fn long_description(&self) -> Option<&'m str>
pub fn long_description(&self) -> Option<&'m str>
The long description.
Sourcepub fn work_method(&self) -> Option<&'m str>
pub fn work_method(&self) -> Option<&'m str>
The work method.
Sourcepub fn is_milestone(&self) -> Option<bool>
pub fn is_milestone(&self) -> Option<bool>
Whether the task is a milestone.
Required by the schema, so None means the file omitted a mandatory
field rather than “not a milestone”.
Sourcepub fn predefined_type(&self) -> Option<&'m str>
pub fn predefined_type(&self) -> Option<&'m str>
The predefined type token, without its dots.
Sourcepub fn task_time_ref(&self) -> Option<EntityId>
pub fn task_time_ref(&self) -> Option<EntityId>
The id this task’s TaskTime slot points at, if any.
Trait Implementations§
Auto Trait Implementations§
impl<'m> Freeze for Task<'m>
impl<'m> RefUnwindSafe for Task<'m>
impl<'m> Send for Task<'m>
impl<'m> Sync for Task<'m>
impl<'m> Unpin for Task<'m>
impl<'m> UnsafeUnpin for Task<'m>
impl<'m> UnwindSafe for Task<'m>
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