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
*/
/// JobCompactAllOf : A *job* is an object representing a process that handles asynchronous work.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct JobCompactAllOf {
/// 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>,
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<Status>,
#[serde(rename = "new_project", skip_serializing_if = "Option::is_none")]
pub new_project: Option<Box<crate::models::ProjectCompact>>,
#[serde(rename = "new_task", skip_serializing_if = "Option::is_none")]
pub new_task: Option<Box<crate::models::TaskCompact>>,
}
impl JobCompactAllOf {
/// A *job* is an object representing a process that handles asynchronous work.
pub fn new() -> JobCompactAllOf {
JobCompactAllOf {
resource_subtype: None,
status: None,
new_project: None,
new_task: None,
}
}
}
///
#[derive(
Clone,
Copy,
Debug,
Eq,
PartialEq,
Ord,
PartialOrd,
Hash,
Serialize,
Deserialize
)]
pub enum Status {
#[serde(rename = "not_started")]
NotStarted,
#[serde(rename = "in_progress")]
InProgress,
#[serde(rename = "completed")]
Completed,
#[serde(rename = "failed")]
Failed,
}