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
/*
* 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
*/
/// TaskCountResponse : A response object returned from the task count endpoint.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct TaskCountResponse {
/// The number of tasks in a project.
#[serde(rename = "num_tasks", skip_serializing_if = "Option::is_none")]
pub num_tasks: Option<i32>,
/// The number of incomplete tasks in a project.
#[serde(
rename = "num_incomplete_tasks",
skip_serializing_if = "Option::is_none"
)]
pub num_incomplete_tasks: Option<i32>,
/// The number of completed tasks in a project.
#[serde(
rename = "num_completed_tasks",
skip_serializing_if = "Option::is_none"
)]
pub num_completed_tasks: Option<i32>,
/// The number of milestones in a project.
#[serde(
rename = "num_milestones",
skip_serializing_if = "Option::is_none"
)]
pub num_milestones: Option<i32>,
/// The number of incomplete milestones in a project.
#[serde(
rename = "num_incomplete_milestones",
skip_serializing_if = "Option::is_none"
)]
pub num_incomplete_milestones: Option<i32>,
/// The number of completed milestones in a project.
#[serde(
rename = "num_completed_milestones",
skip_serializing_if = "Option::is_none"
)]
pub num_completed_milestones: Option<i32>,
}
impl TaskCountResponse {
/// A response object returned from the task count endpoint.
pub fn new() -> TaskCountResponse {
TaskCountResponse {
num_tasks: None,
num_incomplete_tasks: None,
num_completed_tasks: None,
num_milestones: None,
num_incomplete_milestones: None,
num_completed_milestones: None,
}
}
}