1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
* Asana
*
* This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/developer-docs/master/defs/asana_oas.yaml).
*
* The version of the OpenAPI document: 1.0
*
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct ProjectStatusBaseAllOf {
#[serde(rename = "author", skip_serializing_if = "Option::is_none")]
pub author: Option<Box<crate::models::UserCompact>>,
/// The time at which this project status was last modified. *Note: This does not currently reflect any changes in associations such as comments that may have been added or removed from the project status.*
#[serde(rename = "modified_at", skip_serializing_if = "Option::is_none")]
pub modified_at: Option<serde_json::Value>,
/// The text content of the status update.
#[serde(rename = "text")]
pub text: String,
/// [Opt In](/docs/input-output-options). The text content of the status update with formatting as HTML.
#[serde(rename = "html_text", skip_serializing_if = "Option::is_none")]
pub html_text: Option<String>,
/// The color associated with the status update.
#[serde(rename = "color")]
pub color: Color,
}
impl ProjectStatusBaseAllOf {
pub fn new(text: String, color: Color) -> ProjectStatusBaseAllOf {
ProjectStatusBaseAllOf {
author: None,
modified_at: None,
text,
html_text: None,
color,
}
}
}
/// The color associated with the status update.
#[derive(
Clone,
Copy,
Debug,
Eq,
PartialEq,
Ord,
PartialOrd,
Hash,
Serialize,
Deserialize
)]
pub enum Color {
#[serde(rename = "green")]
Green,
#[serde(rename = "yellow")]
Yellow,
#[serde(rename = "red")]
Red,
#[serde(rename = "blue")]
Blue,
}