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
/*
* 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
*/
/// GetDealsTimelineResponse200Data : Open and won deals grouped into periods by defined interval, amount and date-type dealField (`field_key`)
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetDealsTimelineResponse200Data {
/// The start date and time of the period
#[serde(rename = "period_start", skip_serializing_if = "Option::is_none")]
pub period_start: Option<String>,
/// The end date and time of the period
#[serde(rename = "period_end", skip_serializing_if = "Option::is_none")]
pub period_end: Option<String>,
#[serde(rename = "deals", skip_serializing_if = "Option::is_none")]
pub deals: Option<Vec<crate::models::DealStrict>>,
#[serde(rename = "totals", skip_serializing_if = "Option::is_none")]
pub totals: Option<Box<crate::models::GetDealsTimelineResponse200DataTotals>>,
}
impl GetDealsTimelineResponse200Data {
/// Open and won deals grouped into periods by defined interval, amount and date-type dealField (`field_key`)
pub fn new() -> GetDealsTimelineResponse200Data {
GetDealsTimelineResponse200Data {
period_start: None,
period_end: None,
deals: None,
totals: None,
}
}
}