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
 */

/// 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,
        }
    }
}