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
/*
* Pipedrive API v1
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://openapi-generator.tech
*/
/// GetDealsTimelineResponse200DataTotals : The total values of deals for the given period
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetDealsTimelineResponse200DataTotals {
/// The number of deals for the given period
#[serde(rename = "count", skip_serializing_if = "Option::is_none")]
pub count: Option<i32>,
/// The total values of deals grouped by deal currency
#[serde(rename = "values", skip_serializing_if = "Option::is_none")]
pub values: Option<serde_json::Value>,
/// The total weighted values of deals for the given period grouped by deal currency. The weighted value of a deal is calculated as probability times deal value.
#[serde(rename = "weighted_values", skip_serializing_if = "Option::is_none")]
pub weighted_values: Option<serde_json::Value>,
/// The number of open deals for the given period
#[serde(rename = "open_count", skip_serializing_if = "Option::is_none")]
pub open_count: Option<i32>,
/// The total values of open deals for the given period grouped by deal currency
#[serde(rename = "open_values", skip_serializing_if = "Option::is_none")]
pub open_values: Option<serde_json::Value>,
/// The total weighted values of open deals for the given period grouped by deal currency. The weighted value of a deal is calculated as probability times deal value.
#[serde(rename = "weighted_open_values", skip_serializing_if = "Option::is_none")]
pub weighted_open_values: Option<serde_json::Value>,
/// The number of won deals for the given period
#[serde(rename = "won_count", skip_serializing_if = "Option::is_none")]
pub won_count: Option<i32>,
/// The total values of won deals for the given period grouped by deal currency
#[serde(rename = "won_values", skip_serializing_if = "Option::is_none")]
pub won_values: Option<serde_json::Value>,
}
impl GetDealsTimelineResponse200DataTotals {
/// The total values of deals for the given period
pub fn new() -> GetDealsTimelineResponse200DataTotals {
GetDealsTimelineResponse200DataTotals {
count: None,
values: None,
weighted_values: None,
open_count: None,
open_values: None,
weighted_open_values: None,
won_count: None,
won_values: None,
}
}
}