pub struct Assignment {
pub resource_id: ResourceId,
pub start: NaiveDate,
pub finish: NaiveDate,
pub units: f32,
pub cost: Option<Money>,
pub cost_range: Option<CostRange>,
pub is_abstract: bool,
pub effort_days: Option<f64>,
}Expand description
Resource assignment for a specific period
Fields§
§resource_id: ResourceId§start: NaiveDate§finish: NaiveDate§units: f32§cost: Option<Money>§cost_range: Option<CostRange>RFC-0001: Cost range for abstract profile assignments
is_abstract: boolRFC-0001: Whether this is an abstract (profile) assignment
effort_days: Option<f64>Explicit effort in person-days for this assignment.
When set, this overrides the calculated effort (duration × units).
Used when task has explicit effort: attribute different from duration.
Trait Implementations§
Source§impl Clone for Assignment
impl Clone for Assignment
Source§fn clone(&self) -> Assignment
fn clone(&self) -> Assignment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Assignment
impl Debug for Assignment
Source§impl<'de> Deserialize<'de> for Assignment
impl<'de> Deserialize<'de> for Assignment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Assignment
impl RefUnwindSafe for Assignment
impl Send for Assignment
impl Sync for Assignment
impl Unpin for Assignment
impl UnwindSafe for Assignment
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