pipedrive_rs/models/
add_pipeline_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/// AddPipelineResponse200AllOfData : The pipeline object
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AddPipelineResponse200AllOfData {
17    /// The ID of the pipeline
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<i32>,
20    /// The name of the pipeline
21    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
22    pub name: Option<String>,
23    /// The pipeline title displayed in the URL
24    #[serde(rename = "url_title", skip_serializing_if = "Option::is_none")]
25    pub url_title: Option<String>,
26    /// Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline.
27    #[serde(rename = "order_nr", skip_serializing_if = "Option::is_none")]
28    pub order_nr: Option<i32>,
29    /// Whether this pipeline will be made inactive (hidden) or active
30    #[serde(rename = "active", skip_serializing_if = "Option::is_none")]
31    pub active: Option<bool>,
32    /// Whether deal probability is disabled or enabled for this pipeline
33    #[serde(rename = "deal_probability", skip_serializing_if = "Option::is_none")]
34    pub deal_probability: Option<bool>,
35    /// The pipeline creation time. Format: YYYY-MM-DD HH:MM:SS.
36    #[serde(rename = "add_time", skip_serializing_if = "Option::is_none")]
37    pub add_time: Option<String>,
38    /// The pipeline update time. Format: YYYY-MM-DD HH:MM:SS.
39    #[serde(rename = "update_time", skip_serializing_if = "Option::is_none")]
40    pub update_time: Option<String>,
41}
42
43impl AddPipelineResponse200AllOfData {
44    /// The pipeline object
45    pub fn new() -> AddPipelineResponse200AllOfData {
46        AddPipelineResponse200AllOfData {
47            id: None,
48            name: None,
49            url_title: None,
50            order_nr: None,
51            active: None,
52            deal_probability: None,
53            add_time: None,
54            update_time: None,
55        }
56    }
57}
58
59