pub struct ResourceAssignment {
pub id: String,
pub team_id: String,
pub period_id: String,
pub resource_type: String,
pub demand_id: String,
pub allocated_units: f64,
pub cost: f64,
}Expand description
A resource assignment from a team to a demand
Fields§
§id: StringAssignment identifier
team_id: StringTeam providing the resource
period_id: StringPeriod for the assignment
resource_type: StringResource type being allocated
demand_id: StringDemand being fulfilled
allocated_units: f64Units allocated
cost: f64Cost of this assignment
Trait Implementations§
Source§impl Clone for ResourceAssignment
impl Clone for ResourceAssignment
Source§fn clone(&self) -> ResourceAssignment
fn clone(&self) -> ResourceAssignment
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 ResourceAssignment
impl Debug for ResourceAssignment
Source§impl<'de> Deserialize<'de> for ResourceAssignment
impl<'de> Deserialize<'de> for ResourceAssignment
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 ResourceAssignment
impl RefUnwindSafe for ResourceAssignment
impl Send for ResourceAssignment
impl Sync for ResourceAssignment
impl Unpin for ResourceAssignment
impl UnsafeUnpin for ResourceAssignment
impl UnwindSafe for ResourceAssignment
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