pipedrive_rs/models/
get_files_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/// GetFilesResponse200DataInner : The file data
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GetFilesResponse200DataInner {
17    /// The ID of the file
18    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
19    pub id: Option<i32>,
20    /// The ID of the user to associate the file with
21    #[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
22    pub user_id: Option<i32>,
23    /// The ID of the deal to associate the file with
24    #[serde(rename = "deal_id", skip_serializing_if = "Option::is_none")]
25    pub deal_id: Option<i32>,
26    /// The ID of the person to associate the file with
27    #[serde(rename = "person_id", skip_serializing_if = "Option::is_none")]
28    pub person_id: Option<i32>,
29    /// The ID of the organization to associate the file with
30    #[serde(rename = "org_id", skip_serializing_if = "Option::is_none")]
31    pub org_id: Option<i32>,
32    /// The ID of the product to associate the file with
33    #[serde(rename = "product_id", skip_serializing_if = "Option::is_none")]
34    pub product_id: Option<i32>,
35    /// The ID of the activity to associate the file with
36    #[serde(rename = "activity_id", skip_serializing_if = "Option::is_none")]
37    pub activity_id: Option<i32>,
38    /// The ID of the lead to associate the file with
39    #[serde(rename = "lead_id", skip_serializing_if = "Option::is_none")]
40    pub lead_id: Option<uuid::Uuid>,
41    /// The date and time when the file was added/created. Format: YYYY-MM-DD HH:MM:SS
42    #[serde(rename = "add_time", skip_serializing_if = "Option::is_none")]
43    pub add_time: Option<String>,
44    /// The last updated date and time of the file. Format: YYYY-MM-DD HH:MM:SS
45    #[serde(rename = "update_time", skip_serializing_if = "Option::is_none")]
46    pub update_time: Option<String>,
47    /// The original name of the file
48    #[serde(rename = "file_name", skip_serializing_if = "Option::is_none")]
49    pub file_name: Option<String>,
50    /// The size of the file
51    #[serde(rename = "file_size", skip_serializing_if = "Option::is_none")]
52    pub file_size: Option<i32>,
53    /// Whether the user is active or not. false = Not activated, true = Activated
54    #[serde(rename = "active_flag", skip_serializing_if = "Option::is_none")]
55    pub active_flag: Option<bool>,
56    /// Whether the file was uploaded as inline or not
57    #[serde(rename = "inline_flag", skip_serializing_if = "Option::is_none")]
58    pub inline_flag: Option<bool>,
59    /// The location type to send the file to. Only googledrive is supported at the moment.
60    #[serde(rename = "remote_location", skip_serializing_if = "Option::is_none")]
61    pub remote_location: Option<String>,
62    /// The ID of the remote item
63    #[serde(rename = "remote_id", skip_serializing_if = "Option::is_none")]
64    pub remote_id: Option<String>,
65    /// The ID of the inline attachment
66    #[serde(rename = "cid", skip_serializing_if = "Option::is_none")]
67    pub cid: Option<String>,
68    /// The location of the cloud storage
69    #[serde(rename = "s3_bucket", skip_serializing_if = "Option::is_none")]
70    pub s3_bucket: Option<String>,
71    /// The ID of the mail message to associate the file with
72    #[serde(rename = "mail_message_id", skip_serializing_if = "Option::is_none")]
73    pub mail_message_id: Option<String>,
74    /// The ID of the mail template to associate the file with
75    #[serde(rename = "mail_template_id", skip_serializing_if = "Option::is_none")]
76    pub mail_template_id: Option<String>,
77    /// The name of the deal associated with the file
78    #[serde(rename = "deal_name", skip_serializing_if = "Option::is_none")]
79    pub deal_name: Option<String>,
80    /// The name of the person associated with the file
81    #[serde(rename = "person_name", skip_serializing_if = "Option::is_none")]
82    pub person_name: Option<String>,
83    /// The name of the organization associated with the file
84    #[serde(rename = "org_name", skip_serializing_if = "Option::is_none")]
85    pub org_name: Option<String>,
86    /// The name of the product associated with the file
87    #[serde(rename = "product_name", skip_serializing_if = "Option::is_none")]
88    pub product_name: Option<String>,
89    /// The name of the lead associated with the file
90    #[serde(rename = "lead_name", skip_serializing_if = "Option::is_none")]
91    pub lead_name: Option<String>,
92    /// The URL of the download file
93    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
94    pub url: Option<String>,
95    /// The visible name of the file
96    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
97    pub name: Option<String>,
98    /// The description of the file
99    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
100    pub description: Option<String>,
101}
102
103impl GetFilesResponse200DataInner {
104    /// The file data
105    pub fn new() -> GetFilesResponse200DataInner {
106        GetFilesResponse200DataInner {
107            id: None,
108            user_id: None,
109            deal_id: None,
110            person_id: None,
111            org_id: None,
112            product_id: None,
113            activity_id: None,
114            lead_id: None,
115            add_time: None,
116            update_time: None,
117            file_name: None,
118            file_size: None,
119            active_flag: None,
120            inline_flag: None,
121            remote_location: None,
122            remote_id: None,
123            cid: None,
124            s3_bucket: None,
125            mail_message_id: None,
126            mail_template_id: None,
127            deal_name: None,
128            person_name: None,
129            org_name: None,
130            product_name: None,
131            lead_name: None,
132            url: None,
133            name: None,
134            description: None,
135        }
136    }
137}
138
139