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




#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct BasePipelineWithSelectedFlag {
    /// The ID of the pipeline
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    /// The name of the pipeline
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The pipeline title displayed in the URL
    #[serde(rename = "url_title", skip_serializing_if = "Option::is_none")]
    pub url_title: Option<String>,
    /// Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline.
    #[serde(rename = "order_nr", skip_serializing_if = "Option::is_none")]
    pub order_nr: Option<i32>,
    /// Whether this pipeline will be made inactive (hidden) or active
    #[serde(rename = "active", skip_serializing_if = "Option::is_none")]
    pub active: Option<bool>,
    /// Whether deal probability is disabled or enabled for this pipeline
    #[serde(rename = "deal_probability", skip_serializing_if = "Option::is_none")]
    pub deal_probability: Option<bool>,
    /// The pipeline creation time. Format: YYYY-MM-DD HH:MM:SS.
    #[serde(rename = "add_time", skip_serializing_if = "Option::is_none")]
    pub add_time: Option<String>,
    /// The pipeline update time. Format: YYYY-MM-DD HH:MM:SS.
    #[serde(rename = "update_time", skip_serializing_if = "Option::is_none")]
    pub update_time: Option<String>,
    /// A boolean that shows if the pipeline is selected from a filter or not
    #[serde(rename = "selected", skip_serializing_if = "Option::is_none")]
    pub selected: Option<bool>,
}

impl BasePipelineWithSelectedFlag {
    pub fn new() -> BasePipelineWithSelectedFlag {
        BasePipelineWithSelectedFlag {
            id: None,
            name: None,
            url_title: None,
            order_nr: None,
            active: None,
            deal_probability: None,
            add_time: None,
            update_time: None,
            selected: None,
        }
    }
}