1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Asana
*
* This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/developer-docs/master/defs/asana_oas.yaml).
*
* The version of the OpenAPI document: 1.0
*
* Generated by: https://openapi-generator.tech
*/
/// ProjectDuplicateRequestScheduleDates : A dictionary of options to auto-shift dates. `task_dates` must be included to use this option. Requires either `start_on` or `due_on`, but not both.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct ProjectDuplicateRequestScheduleDates {
/// Determines if the auto-shifted dates should skip weekends.
#[serde(rename = "should_skip_weekends")]
pub should_skip_weekends: bool,
/// Sets the last due date in the duplicated project to the given date. The rest of the due dates will be offset by the same amount as the due dates in the original project.
#[serde(rename = "due_on", skip_serializing_if = "Option::is_none")]
pub due_on: Option<String>,
/// Sets the first start date in the duplicated project to the given date. The rest of the start dates will be offset by the same amount as the start dates in the original project.
#[serde(rename = "start_on", skip_serializing_if = "Option::is_none")]
pub start_on: Option<String>,
}
impl ProjectDuplicateRequestScheduleDates {
/// A dictionary of options to auto-shift dates. `task_dates` must be included to use this option. Requires either `start_on` or `due_on`, but not both.
pub fn new(
should_skip_weekends: bool,
) -> ProjectDuplicateRequestScheduleDates {
ProjectDuplicateRequestScheduleDates {
should_skip_weekends,
due_on: None,
start_on: None,
}
}
}