pipedrive_rs/models/
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 UserDataWithId {
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    /// Whether the user has picture or not. 0 = No picture, 1 = Has picture.
26    #[serde(rename = "has_pic", skip_serializing_if = "Option::is_none")]
27    pub has_pic: Option<i32>,
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}
35
36impl UserDataWithId {
37    pub fn new() -> UserDataWithId {
38        UserDataWithId {
39            id: None,
40            name: None,
41            email: None,
42            has_pic: None,
43            pic_hash: None,
44            active_flag: None,
45        }
46    }
47}
48
49