Skip to main content

asana/model/
task_template_instantiate_task_request.rs

1use serde::{Serialize, Deserialize};
2#[derive(Debug, Clone, Serialize, Deserialize, Default)]
3pub struct TaskTemplateInstantiateTaskRequest {
4    ///The name of the new task. If not provided, the name of the task template will be used.
5    pub name: String,
6}
7impl std::fmt::Display for TaskTemplateInstantiateTaskRequest {
8    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
9        write!(f, "{}", serde_json::to_string(self).unwrap())
10    }
11}