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