Skip to main content

dpm_model/work/
schedule.rs

1//! Authoritative work scheduling inputs.
2
3use crate::*;
4use serde::{Deserialize, Serialize};
5
6/// Priority and uncertainty inputs used to derive schedule projections.
7#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
8#[serde(deny_unknown_fields)]
9pub struct ScheduleInputs {
10    /// Human-assigned importance.
11    pub priority: Priority,
12    /// Optional duration uncertainty; absent estimates contribute zero hours. With calendars the
13    /// hours are working hours of the task's calendar.
14    pub estimate: Option<ThreePointEstimate>,
15    /// Kind of actor expected to do the work while it has no owner; the workspace default when
16    /// absent.
17    #[serde(default, skip_serializing_if = "Option::is_none")]
18    pub executor: Option<ActorKind>,
19    /// Calendar this task follows regardless of who does it.
20    #[serde(default, skip_serializing_if = "Option::is_none")]
21    pub calendar: Option<String>,
22}