pipedrive_rs/models/
get_comments_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 GetCommentsResponse200DataInner {
16    /// The ID of the note
17    #[serde(rename = "uuid", skip_serializing_if = "Option::is_none")]
18    pub uuid: Option<uuid::Uuid>,
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 creation date and time of the note
26    #[serde(rename = "update_time", skip_serializing_if = "Option::is_none")]
27    pub update_time: Option<String>,
28    /// The content of the note in HTML format. Subject to sanitization on the back-end.
29    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
30    pub content: Option<String>,
31    /// The ID of the object that the comment is attached to, will be the id of the note
32    #[serde(rename = "object_id", skip_serializing_if = "Option::is_none")]
33    pub object_id: Option<String>,
34    /// The type of object that the comment is attached to, will be \"note\"
35    #[serde(rename = "object_type", skip_serializing_if = "Option::is_none")]
36    pub object_type: Option<String>,
37    /// The ID of the user who created the comment
38    #[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
39    pub user_id: Option<i32>,
40    /// The ID of the user who last updated the comment
41    #[serde(rename = "updater_id", skip_serializing_if = "Option::is_none")]
42    pub updater_id: Option<i32>,
43    /// The ID of the company
44    #[serde(rename = "company_id", skip_serializing_if = "Option::is_none")]
45    pub company_id: Option<i32>,
46}
47
48impl GetCommentsResponse200DataInner {
49    pub fn new() -> GetCommentsResponse200DataInner {
50        GetCommentsResponse200DataInner {
51            uuid: None,
52            active_flag: None,
53            add_time: None,
54            update_time: None,
55            content: None,
56            object_id: None,
57            object_type: None,
58            user_id: None,
59            updater_id: None,
60            company_id: None,
61        }
62    }
63}
64
65