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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*
* 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
*/
/// StoryBaseAllOf : A story represents an activity associated with an object in the Asana system.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct StoryBaseAllOf {
/// The time at which this resource was created.
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
/// The subtype of this resource. Different subtypes retain many of the same fields and behavior, but may render differently in Asana or represent resources with different semantic meaning.
#[serde(
rename = "resource_subtype",
skip_serializing_if = "Option::is_none"
)]
pub resource_subtype: Option<String>,
/// The plain text of the comment to add. Cannot be used with html_text.
#[serde(rename = "text", skip_serializing_if = "Option::is_none")]
pub text: Option<String>,
/// [Opt In](/docs/input-output-options). HTML formatted text for a comment. This will not include the name of the creator.
#[serde(rename = "html_text", skip_serializing_if = "Option::is_none")]
pub html_text: Option<String>,
/// *Conditional*. Whether the story should be pinned on the resource.
#[serde(rename = "is_pinned", skip_serializing_if = "Option::is_none")]
pub is_pinned: Option<bool>,
/// The name of the sticker in this story. `null` if there is no sticker.
#[serde(rename = "sticker_name", skip_serializing_if = "Option::is_none")]
pub sticker_name: Option<StickerName>,
}
impl StoryBaseAllOf {
/// A story represents an activity associated with an object in the Asana system.
pub fn new() -> StoryBaseAllOf {
StoryBaseAllOf {
created_at: None,
resource_subtype: None,
text: None,
html_text: None,
is_pinned: None,
sticker_name: None,
}
}
}
/// The name of the sticker in this story. `null` if there is no sticker.
#[derive(
Clone,
Copy,
Debug,
Eq,
PartialEq,
Ord,
PartialOrd,
Hash,
Serialize,
Deserialize
)]
pub enum StickerName {
#[serde(rename = "green_checkmark")]
GreenCheckmark,
#[serde(rename = "people_dancing")]
PeopleDancing,
#[serde(rename = "dancing_unicorn")]
DancingUnicorn,
#[serde(rename = "heart")]
Heart,
#[serde(rename = "party_popper")]
PartyPopper,
#[serde(rename = "people_waving_flags")]
PeopleWavingFlags,
#[serde(rename = "splashing_narwhal")]
SplashingNarwhal,
#[serde(rename = "trophy")]
Trophy,
#[serde(rename = "yeti_riding_unicorn")]
YetiRidingUnicorn,
#[serde(rename = "celebrating_people")]
CelebratingPeople,
#[serde(rename = "determined_climbers")]
DeterminedClimbers,
#[serde(rename = "phoenix_spreading_love")]
PhoenixSpreadingLove,
}