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

/// GetDealsResponse200RelatedObjectsPerson : The person who is associated with the deal



#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetDealsResponse200RelatedObjectsPerson {
    /// Whether the associated person is active or not
    #[serde(rename = "active_flag", skip_serializing_if = "Option::is_none")]
    pub active_flag: Option<bool>,
    /// The name of the person associated with the deal
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The emails of the person associated with the deal
    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
    pub email: Option<Vec<crate::models::DealPersonDataWithIdAllOfEmailInner>>,
    /// The phone numbers of the person associated with the deal
    #[serde(rename = "phone", skip_serializing_if = "Option::is_none")]
    pub phone: Option<Vec<crate::models::DealPersonDataWithIdAllOfPhoneInner>>,
    /// The ID of the owner of the person that is associated with the deal
    #[serde(rename = "owner_id", skip_serializing_if = "Option::is_none")]
    pub owner_id: Option<i32>,
}

impl GetDealsResponse200RelatedObjectsPerson {
    /// The person who is associated with the deal
    pub fn new() -> GetDealsResponse200RelatedObjectsPerson {
        GetDealsResponse200RelatedObjectsPerson {
            active_flag: None,
            name: None,
            email: None,
            phone: None,
            owner_id: None,
        }
    }
}