pipedrive_rs/models/
get_notes_response200_data_inner.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 GetNotesResponse200DataInner {
16    /// The ID of the note
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<i32>,
19    /// Whether the note is active or deleted
20    #[serde(rename = "active_flag", skip_serializing_if = "Option::is_none")]
21    pub active_flag: Option<bool>,
22    /// The creation date and time of the note
23    #[serde(rename = "add_time", skip_serializing_if = "Option::is_none")]
24    pub add_time: Option<String>,
25    /// The content of the note in HTML format. Subject to sanitization on the back-end.
26    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
27    pub content: Option<String>,
28    #[serde(rename = "deal", skip_serializing_if = "Option::is_none")]
29    pub deal: Option<Box<crate::models::GetNotesResponse200DataInnerDeal>>,
30    /// The ID of the lead the note is attached to
31    #[serde(rename = "lead_id", skip_serializing_if = "Option::is_none")]
32    pub lead_id: Option<uuid::Uuid>,
33    /// The ID of the deal the note is attached to
34    #[serde(rename = "deal_id", skip_serializing_if = "Option::is_none")]
35    pub deal_id: Option<i32>,
36    /// The ID of the user who last updated the note
37    #[serde(rename = "last_update_user_id", skip_serializing_if = "Option::is_none")]
38    pub last_update_user_id: Option<i32>,
39    /// The ID of the organization the note is attached to
40    #[serde(rename = "org_id", skip_serializing_if = "Option::is_none")]
41    pub org_id: Option<i32>,
42    #[serde(rename = "organization", skip_serializing_if = "Option::is_none")]
43    pub organization: Option<Box<crate::models::GetNotesResponse200DataInnerOrganization>>,
44    #[serde(rename = "person", skip_serializing_if = "Option::is_none")]
45    pub person: Option<Box<crate::models::GetNotesResponse200DataInnerPerson>>,
46    /// The ID of the person the note is attached to
47    #[serde(rename = "person_id", skip_serializing_if = "Option::is_none")]
48    pub person_id: Option<i32>,
49    /// If true, the results are filtered by note to deal pinning state
50    #[serde(rename = "pinned_to_deal_flag", skip_serializing_if = "Option::is_none")]
51    pub pinned_to_deal_flag: Option<bool>,
52    /// If true, the results are filtered by note to organization pinning state
53    #[serde(rename = "pinned_to_organization_flag", skip_serializing_if = "Option::is_none")]
54    pub pinned_to_organization_flag: Option<bool>,
55    /// If true, the results are filtered by note to person pinning state
56    #[serde(rename = "pinned_to_person_flag", skip_serializing_if = "Option::is_none")]
57    pub pinned_to_person_flag: Option<bool>,
58    /// The last updated date and time of the note
59    #[serde(rename = "update_time", skip_serializing_if = "Option::is_none")]
60    pub update_time: Option<String>,
61    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
62    pub user: Option<Box<crate::models::GetNotesResponse200DataInnerUser>>,
63    /// The ID of the note creator
64    #[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
65    pub user_id: Option<i32>,
66}
67
68impl GetNotesResponse200DataInner {
69    pub fn new() -> GetNotesResponse200DataInner {
70        GetNotesResponse200DataInner {
71            id: None,
72            active_flag: None,
73            add_time: None,
74            content: None,
75            deal: None,
76            lead_id: None,
77            deal_id: None,
78            last_update_user_id: None,
79            org_id: None,
80            organization: None,
81            person: None,
82            person_id: None,
83            pinned_to_deal_flag: None,
84            pinned_to_organization_flag: None,
85            pinned_to_person_flag: None,
86            update_time: None,
87            user: None,
88            user_id: None,
89        }
90    }
91}
92
93