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
/*
* 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 StoryCompact {
/// Globally unique identifier of the resource, as a string.
#[serde(rename = "gid", skip_serializing_if = "Option::is_none")]
pub gid: Option<String>,
/// The base type of this resource.
#[serde(rename = "resource_type", skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
/// The time at which this resource was created.
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
pub created_at: Option<String>,
#[serde(rename = "created_by", skip_serializing_if = "Option::is_none")]
pub created_by: Option<Box<crate::models::UserCompact>>,
/// 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>,
/// *Create-only*. Human-readable text for the story or comment. This will not include the name of the creator. *Note: This is not guaranteed to be stable for a given type of story. For example, text for a reassignment may not always say “assigned to …” as the text for a story can both be edited and change based on the language settings of the user making the request.* Use the `resource_subtype` property to discover the action that created the story.
#[serde(rename = "text", skip_serializing_if = "Option::is_none")]
pub text: Option<String>,
}
impl StoryCompact {
pub fn new() -> StoryCompact {
StoryCompact {
gid: None,
resource_type: None,
created_at: None,
created_by: None,
resource_subtype: None,
text: None,
}
}
}