asana/model/
date_variable_compact.rs

1use serde::{Serialize, Deserialize};
2#[derive(Debug, Clone, Serialize, Deserialize, Default)]
3pub struct DateVariableCompact {
4    ///The description of what the date variable is used for when instantiating a project.
5    pub description: String,
6    ///Globally unique identifier of the date field in the project template. A value of `1` refers to the project start date, while `2` refers to the project due date.
7    pub gid: String,
8    ///The name of the date variable.
9    pub name: String,
10}
11impl std::fmt::Display for DateVariableCompact {
12    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
13        write!(f, "{}", serde_json::to_string(self).unwrap())
14    }
15}