Skip to main content

asana/model/
task_template_recipe_compact.rs

1use serde::{Serialize, Deserialize};
2#[derive(Debug, Clone, Serialize, Deserialize, Default)]
3pub struct TaskTemplateRecipeCompact {
4    ///Name of the task that will be created from this template.
5    #[serde(skip_serializing_if = "Option::is_none")]
6    pub name: Option<String>,
7    ///The subtype of the task that will be created from this template.
8    #[serde(skip_serializing_if = "Option::is_none")]
9    pub task_resource_subtype: Option<String>,
10}
11impl std::fmt::Display for TaskTemplateRecipeCompact {
12    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
13        write!(f, "{}", serde_json::to_string(self).unwrap())
14    }
15}