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

/// GetDealsResponse200RelatedObjectsUser : The user who is associated with the deal



#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetDealsResponse200RelatedObjectsUser {
    /// The ID of the user
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    /// The name of the user
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The email of the user
    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    /// If the user has a picture or not
    #[serde(rename = "has_pic", skip_serializing_if = "Option::is_none")]
    pub has_pic: Option<bool>,
    /// The user picture hash
    #[serde(rename = "pic_hash", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub pic_hash: Option<Option<String>>,
    /// Whether the user is active or not
    #[serde(rename = "active_flag", skip_serializing_if = "Option::is_none")]
    pub active_flag: Option<bool>,
}

impl GetDealsResponse200RelatedObjectsUser {
    /// The user who is associated with the deal
    pub fn new() -> GetDealsResponse200RelatedObjectsUser {
        GetDealsResponse200RelatedObjectsUser {
            id: None,
            name: None,
            email: None,
            has_pic: None,
            pic_hash: None,
            active_flag: None,
        }
    }
}