Skip to main content

asana/model/
project_save_as_template_request_body.rs

1use serde::{Serialize, Deserialize};
2#[derive(Debug, Clone, Serialize, Deserialize, Default)]
3pub struct ProjectSaveAsTemplateRequestBody {
4    ///The name of the new project template.
5    pub name: String,
6    ///Sets the project template to public to its team.
7    pub public: bool,
8    ///Sets the team of the new project template. If the project exists in an organization, specify team and not workspace.
9    pub team: String,
10    ///Sets the workspace of the new project template. Only specify workspace if the project exists in a workspace.
11    pub workspace: String,
12}
13impl std::fmt::Display for ProjectSaveAsTemplateRequestBody {
14    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
15        write!(f, "{}", serde_json::to_string(self).unwrap())
16    }
17}