asana/model/
project_duplicate_request.rs

1use serde::{Serialize, Deserialize};
2#[derive(Debug, Clone, Serialize, Deserialize, Default)]
3pub struct ProjectDuplicateRequest {
4    /**A comma-separated list of elements that will be duplicated to the new project. Tasks are always included.
5##### Fields
6- forms
7- members
8- notes
9- task_assignee
10- task_attachments
11- task_dates
12- task_dependencies
13- task_followers
14- task_notes
15- task_projects
16- task_subtasks
17- task_tags*/
18    pub include: String,
19    ///The name of the new project.
20    pub name: String,
21    ///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.
22    pub schedule_dates: serde_json::Value,
23    ///Sets the team of the new project. If team is not defined, the new project will be in the same team as the the original project.
24    pub team: String,
25}
26impl std::fmt::Display for ProjectDuplicateRequest {
27    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
28        write!(f, "{}", serde_json::to_string(self).unwrap())
29    }
30}