asana2 0.5.0

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