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

/// GetDealsSummaryResponse200DataValuesTotal : The total values of the deals grouped by deal currency



#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetDealsSummaryResponse200DataValuesTotal {
    /// The total value of deals in the deal currency group
    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
    pub value: Option<f32>,
    /// The number of deals in the deal currency group
    #[serde(rename = "count", skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
    /// The total value of deals converted into the company default currency
    #[serde(rename = "value_converted", skip_serializing_if = "Option::is_none")]
    pub value_converted: Option<f32>,
    /// The total value of deals formatted with deal currency. E.g. €50
    #[serde(rename = "value_formatted", skip_serializing_if = "Option::is_none")]
    pub value_formatted: Option<String>,
    /// The value_converted formatted with deal currency. E.g. US$50.10
    #[serde(rename = "value_converted_formatted", skip_serializing_if = "Option::is_none")]
    pub value_converted_formatted: Option<String>,
}

impl GetDealsSummaryResponse200DataValuesTotal {
    /// The total values of the deals grouped by deal currency
    pub fn new() -> GetDealsSummaryResponse200DataValuesTotal {
        GetDealsSummaryResponse200DataValuesTotal {
            value: None,
            count: None,
            value_converted: None,
            value_formatted: None,
            value_converted_formatted: None,
        }
    }
}