1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* 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,
}
}
}