pipedrive_rs/models/
get_pipeline_conversion_statistics_response200_all_of_data.rs

1/*
2 * Pipedrive API v1
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// GetPipelineConversionStatisticsResponse200AllOfData : The pipeline object
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GetPipelineConversionStatisticsResponse200AllOfData {
17    /// The stage conversions
18    #[serde(rename = "stage_conversions", skip_serializing_if = "Option::is_none")]
19    pub stage_conversions: Option<Vec<crate::models::GetPipelineConversionStatisticsResponse200AllOfDataStageConversionsInner>>,
20    /// The won conversion
21    #[serde(rename = "won_conversion", skip_serializing_if = "Option::is_none")]
22    pub won_conversion: Option<i32>,
23    /// The lost conversion
24    #[serde(rename = "lost_conversion", skip_serializing_if = "Option::is_none")]
25    pub lost_conversion: Option<i32>,
26}
27
28impl GetPipelineConversionStatisticsResponse200AllOfData {
29    /// The pipeline object
30    pub fn new() -> GetPipelineConversionStatisticsResponse200AllOfData {
31        GetPipelineConversionStatisticsResponse200AllOfData {
32            stage_conversions: None,
33            won_conversion: None,
34            lost_conversion: None,
35        }
36    }
37}
38
39