pipedrive_rs/models/
deal_user_data_with_id.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 DealUserDataWithId {
16    /// The ID of the user
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<i32>,
19    /// The name of the user
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    /// The email of the user
23    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
24    pub email: Option<String>,
25    /// If the user has a picture or not
26    #[serde(rename = "has_pic", skip_serializing_if = "Option::is_none")]
27    pub has_pic: Option<bool>,
28    /// The user picture hash
29    #[serde(rename = "pic_hash", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
30    pub pic_hash: Option<Option<String>>,
31    /// Whether the user is active or not
32    #[serde(rename = "active_flag", skip_serializing_if = "Option::is_none")]
33    pub active_flag: Option<bool>,
34    /// The ID of the user
35    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
36    pub value: Option<i32>,
37}
38
39impl DealUserDataWithId {
40    pub fn new() -> DealUserDataWithId {
41        DealUserDataWithId {
42            id: None,
43            name: None,
44            email: None,
45            has_pic: None,
46            pic_hash: None,
47            active_flag: None,
48            value: None,
49        }
50    }
51}
52
53