pipedrive-rs 0.1.0

Rust PipedriveClient
Documentation
/*
 * 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,
        }
    }
}