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

/// GetActivitiesResponse200RelatedObjectsDealDealId : The ID of the deal which is associated with the item



#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetActivitiesResponse200RelatedObjectsDealDealId {
    /// The ID of the deal associated with the item
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    /// The title of the deal associated with the item
    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
    /// The status of the deal associated with the item
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// The value of the deal that is associated with the item
    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
    pub value: Option<f32>,
    /// The currency of the deal value
    #[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
    pub currency: Option<String>,
    /// The ID of the stage the deal is currently at
    #[serde(rename = "stage_id", skip_serializing_if = "Option::is_none")]
    pub stage_id: Option<i32>,
    /// The ID of the pipeline the deal is in
    #[serde(rename = "pipeline_id", skip_serializing_if = "Option::is_none")]
    pub pipeline_id: Option<i32>,
}

impl GetActivitiesResponse200RelatedObjectsDealDealId {
    /// The ID of the deal which is associated with the item
    pub fn new() -> GetActivitiesResponse200RelatedObjectsDealDealId {
        GetActivitiesResponse200RelatedObjectsDealDealId {
            id: None,
            title: None,
            status: None,
            value: None,
            currency: None,
            stage_id: None,
            pipeline_id: None,
        }
    }
}