pub struct CapacityPlanningInput {
pub demand_forecasts: Vec<DemandForecast>,
pub resource_types: Vec<ResourceType>,
pub teams: Vec<Team>,
pub constraints: PlanningConstraints,
}Expand description
Input for capacity planning optimization
Fields§
§demand_forecasts: Vec<DemandForecast>Demand forecasts by period
resource_types: Vec<ResourceType>Available resource types
teams: Vec<Team>Teams with their capacity
constraints: PlanningConstraintsPlanning constraints
Implementations§
Source§impl CapacityPlanningInput
impl CapacityPlanningInput
Sourcepub fn total_demand(&self) -> f64
pub fn total_demand(&self) -> f64
Get total demand across all periods
Sourcepub fn total_capacity(&self) -> f64
pub fn total_capacity(&self) -> f64
Get total capacity across all teams
Sourcepub fn teams_with_skill<'a>(
&'a self,
skill: &'a str,
) -> impl Iterator<Item = &'a Team> + 'a
pub fn teams_with_skill<'a>( &'a self, skill: &'a str, ) -> impl Iterator<Item = &'a Team> + 'a
Get teams with a specific skill
Sourcepub fn demand_for_period(&self, period_id: &str) -> Option<&DemandForecast>
pub fn demand_for_period(&self, period_id: &str) -> Option<&DemandForecast>
Get demand for a specific period
Trait Implementations§
Source§impl Clone for CapacityPlanningInput
impl Clone for CapacityPlanningInput
Source§fn clone(&self) -> CapacityPlanningInput
fn clone(&self) -> CapacityPlanningInput
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 CapacityPlanningInput
impl Debug for CapacityPlanningInput
Source§impl Default for CapacityPlanningInput
impl Default for CapacityPlanningInput
Source§fn default() -> CapacityPlanningInput
fn default() -> CapacityPlanningInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CapacityPlanningInput
impl<'de> Deserialize<'de> for CapacityPlanningInput
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 CapacityPlanningInput
impl RefUnwindSafe for CapacityPlanningInput
impl Send for CapacityPlanningInput
impl Sync for CapacityPlanningInput
impl Unpin for CapacityPlanningInput
impl UnsafeUnpin for CapacityPlanningInput
impl UnwindSafe for CapacityPlanningInput
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