pipedrive_rs/models/
activity_response_object.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 ActivityResponseObject {
16    /// The due date of the activity. Format: YYYY-MM-DD
17    #[serde(rename = "due_date", skip_serializing_if = "Option::is_none")]
18    pub due_date: Option<String>,
19    /// The due time of the activity in UTC. Format: HH:MM
20    #[serde(rename = "due_time", skip_serializing_if = "Option::is_none")]
21    pub due_time: Option<String>,
22    /// The duration of the activity. Format: HH:MM
23    #[serde(rename = "duration", skip_serializing_if = "Option::is_none")]
24    pub duration: Option<String>,
25    /// The ID of the deal this activity is associated with
26    #[serde(rename = "deal_id", skip_serializing_if = "Option::is_none")]
27    pub deal_id: Option<i32>,
28    /// The ID of the lead in the UUID format this activity is associated with
29    #[serde(rename = "lead_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
30    pub lead_id: Option<Option<uuid::Uuid>>,
31    /// The ID of the person this activity is associated with
32    #[serde(rename = "person_id", skip_serializing_if = "Option::is_none")]
33    pub person_id: Option<i32>,
34    /// The ID of the project this activity is associated with
35    #[serde(rename = "project_id", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
36    pub project_id: Option<Option<i32>>,
37    /// The ID of the organization this activity is associated with
38    #[serde(rename = "org_id", skip_serializing_if = "Option::is_none")]
39    pub org_id: Option<i32>,
40    /// The address of the activity. Pipedrive will automatically check if the location matches a geo-location on Google maps.
41    #[serde(rename = "location", skip_serializing_if = "Option::is_none")]
42    pub location: Option<String>,
43    /// Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity.
44    #[serde(rename = "public_description", skip_serializing_if = "Option::is_none")]
45    pub public_description: Option<String>,
46    /// The ID of the activity, generated when the activity was created
47    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
48    pub id: Option<i32>,
49    /// The note of the activity (HTML format)
50    #[serde(rename = "note", skip_serializing_if = "Option::is_none")]
51    pub note: Option<String>,
52    /// Whether the activity is done or not
53    #[serde(rename = "done", skip_serializing_if = "Option::is_none")]
54    pub done: Option<bool>,
55    /// The subject of the activity
56    #[serde(rename = "subject", skip_serializing_if = "Option::is_none")]
57    pub subject: Option<String>,
58    /// The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes.
59    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
60    pub r#type: Option<String>,
61    /// The ID of the user whom the activity is assigned to
62    #[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
63    pub user_id: Option<i32>,
64    /// List of multiple persons (participants) this activity is associated with
65    #[serde(rename = "participants", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
66    pub participants: Option<Option<Vec<serde_json::Value>>>,
67    /// Marks if the activity is set as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time.
68    #[serde(rename = "busy_flag", skip_serializing_if = "Option::is_none")]
69    pub busy_flag: Option<bool>,
70    /// The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address.
71    #[serde(rename = "attendees", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
72    pub attendees: Option<Option<Vec<serde_json::Value>>>,
73    /// The user's company ID
74    #[serde(rename = "company_id", skip_serializing_if = "Option::is_none")]
75    pub company_id: Option<i32>,
76    /// If the activity references some other object, it is indicated here. For example, value `Salesphone` refers to activities created with Caller.
77    #[serde(rename = "reference_type", skip_serializing_if = "Option::is_none")]
78    pub reference_type: Option<String>,
79    /// Together with the `reference_type`, gives the ID of the other object
80    #[serde(rename = "reference_id", skip_serializing_if = "Option::is_none")]
81    pub reference_id: Option<i32>,
82    /// The ID of the Marketplace app, which is connected to this activity
83    #[serde(rename = "conference_meeting_client", skip_serializing_if = "Option::is_none")]
84    pub conference_meeting_client: Option<String>,
85    /// The link to join the meeting which is associated with this activity
86    #[serde(rename = "conference_meeting_url", skip_serializing_if = "Option::is_none")]
87    pub conference_meeting_url: Option<String>,
88    /// The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity
89    #[serde(rename = "conference_meeting_id", skip_serializing_if = "Option::is_none")]
90    pub conference_meeting_id: Option<String>,
91    /// The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS.
92    #[serde(rename = "add_time", skip_serializing_if = "Option::is_none")]
93    pub add_time: Option<String>,
94    /// The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS.
95    #[serde(rename = "marked_as_done_time", skip_serializing_if = "Option::is_none")]
96    pub marked_as_done_time: Option<String>,
97    /// The date and time of latest notifications sent about this activity to the participants or the attendees of this activity
98    #[serde(rename = "last_notification_time", skip_serializing_if = "Option::is_none")]
99    pub last_notification_time: Option<String>,
100    /// The ID of the user who triggered the sending of the latest notifications about this activity to the participants or the attendees of this activity
101    #[serde(rename = "last_notification_user_id", skip_serializing_if = "Option::is_none")]
102    pub last_notification_user_id: Option<i32>,
103    /// The ID of the language the notifications are sent in
104    #[serde(rename = "notification_language_id", skip_serializing_if = "Option::is_none")]
105    pub notification_language_id: Option<i32>,
106    /// Whether the activity is active or not
107    #[serde(rename = "active_flag", skip_serializing_if = "Option::is_none")]
108    pub active_flag: Option<bool>,
109    /// The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS.
110    #[serde(rename = "update_time", skip_serializing_if = "Option::is_none")]
111    pub update_time: Option<String>,
112    /// The ID of the user who was the last to update this activity
113    #[serde(rename = "update_user_id", skip_serializing_if = "Option::is_none")]
114    pub update_user_id: Option<i32>,
115    /// For the activity which syncs to Google calendar, this is the Google event ID. NB! This field is related to old Google calendar sync and will be deprecated soon.
116    #[serde(rename = "gcal_event_id", skip_serializing_if = "Option::is_none")]
117    pub gcal_event_id: Option<String>,
118    /// The Google calendar ID that this activity syncs to. NB! This field is related to old Google calendar sync and will be deprecated soon.
119    #[serde(rename = "google_calendar_id", skip_serializing_if = "Option::is_none")]
120    pub google_calendar_id: Option<String>,
121    /// The Google calendar API etag (version) that is used for syncing this activity. NB! This field is related to old Google calendar sync and will be deprecated soon.
122    #[serde(rename = "google_calendar_etag", skip_serializing_if = "Option::is_none")]
123    pub google_calendar_etag: Option<String>,
124    /// For activities that sync to an external calendar, this setting indicates if the activity syncs with context (what are the deals, persons, organizations this activity is related to)
125    #[serde(rename = "calendar_sync_include_context", skip_serializing_if = "Option::is_none")]
126    pub calendar_sync_include_context: Option<String>,
127    /// The timezone the activity was created in an external calendar
128    #[serde(rename = "source_timezone", skip_serializing_if = "Option::is_none")]
129    pub source_timezone: Option<String>,
130    /// The rule for the recurrence of the activity. Is important for activities synced into Pipedrive from an external calendar. Example: \"RRULE:FREQ=WEEKLY;BYDAY=WE\"
131    #[serde(rename = "rec_rule", skip_serializing_if = "Option::is_none")]
132    pub rec_rule: Option<String>,
133    /// Additional rules for the recurrence of the activity, extend the `rec_rule`. Is important for activities synced into Pipedrive from an external calendar.
134    #[serde(rename = "rec_rule_extension", skip_serializing_if = "Option::is_none")]
135    pub rec_rule_extension: Option<String>,
136    /// The ID of parent activity for a recurrent activity if the current activity is an exception to recurrence rules
137    #[serde(rename = "rec_master_activity_id", skip_serializing_if = "Option::is_none")]
138    pub rec_master_activity_id: Option<i32>,
139    /// The list of recurring activity instances. It is in a structure as follows: `[{due_date: \"2020-06-24\", due_time: \"10:00:00\"}]`
140    #[serde(rename = "series", skip_serializing_if = "Option::is_none")]
141    pub series: Option<Vec<serde_json::Value>>,
142    /// The ID of the user who created the activity
143    #[serde(rename = "created_by_user_id", skip_serializing_if = "Option::is_none")]
144    pub created_by_user_id: Option<i32>,
145    /// A subfield of the location field. Indicates apartment/suite number.
146    #[serde(rename = "location_subpremise", skip_serializing_if = "Option::is_none")]
147    pub location_subpremise: Option<String>,
148    /// A subfield of the location field. Indicates house number.
149    #[serde(rename = "location_street_number", skip_serializing_if = "Option::is_none")]
150    pub location_street_number: Option<String>,
151    /// A subfield of the location field. Indicates street name.
152    #[serde(rename = "location_route", skip_serializing_if = "Option::is_none")]
153    pub location_route: Option<String>,
154    /// A subfield of the location field. Indicates district/sublocality.
155    #[serde(rename = "location_sublocality", skip_serializing_if = "Option::is_none")]
156    pub location_sublocality: Option<String>,
157    /// A subfield of the location field. Indicates city/town/village/locality.
158    #[serde(rename = "location_locality", skip_serializing_if = "Option::is_none")]
159    pub location_locality: Option<String>,
160    /// A subfield of the location field. Indicates state/county.
161    #[serde(rename = "location_admin_area_level_1", skip_serializing_if = "Option::is_none")]
162    pub location_admin_area_level_1: Option<String>,
163    /// A subfield of the location field. Indicates region.
164    #[serde(rename = "location_admin_area_level_2", skip_serializing_if = "Option::is_none")]
165    pub location_admin_area_level_2: Option<String>,
166    /// A subfield of the location field. Indicates country.
167    #[serde(rename = "location_country", skip_serializing_if = "Option::is_none")]
168    pub location_country: Option<String>,
169    /// A subfield of the location field. Indicates ZIP/postal code.
170    #[serde(rename = "location_postal_code", skip_serializing_if = "Option::is_none")]
171    pub location_postal_code: Option<String>,
172    /// A subfield of the location field. Indicates full/combined address.
173    #[serde(rename = "location_formatted_address", skip_serializing_if = "Option::is_none")]
174    pub location_formatted_address: Option<String>,
175    /// The name of the organization this activity is associated with
176    #[serde(rename = "org_name", skip_serializing_if = "Option::is_none")]
177    pub org_name: Option<String>,
178    /// The name of the person this activity is associated with
179    #[serde(rename = "person_name", skip_serializing_if = "Option::is_none")]
180    pub person_name: Option<String>,
181    /// The name of the deal this activity is associated with
182    #[serde(rename = "deal_title", skip_serializing_if = "Option::is_none")]
183    pub deal_title: Option<String>,
184    /// The name of the user this activity is owned by
185    #[serde(rename = "owner_name", skip_serializing_if = "Option::is_none")]
186    pub owner_name: Option<String>,
187    /// The BCC email address of the person
188    #[serde(rename = "person_dropbox_bcc", skip_serializing_if = "Option::is_none")]
189    pub person_dropbox_bcc: Option<String>,
190    /// The BCC email address of the deal
191    #[serde(rename = "deal_dropbox_bcc", skip_serializing_if = "Option::is_none")]
192    pub deal_dropbox_bcc: Option<String>,
193    /// The ID of the user to whom the activity is assigned to. Equal to `user_id`.
194    #[serde(rename = "assigned_to_user_id", skip_serializing_if = "Option::is_none")]
195    pub assigned_to_user_id: Option<i32>,
196    /// The file that is attached to this activity. For example, this can be a reference to an audio note file generated with Pipedrive mobile app.
197    #[serde(rename = "file", skip_serializing_if = "Option::is_none")]
198    pub file: Option<serde_json::Value>,
199}
200
201impl ActivityResponseObject {
202    pub fn new() -> ActivityResponseObject {
203        ActivityResponseObject {
204            due_date: None,
205            due_time: None,
206            duration: None,
207            deal_id: None,
208            lead_id: None,
209            person_id: None,
210            project_id: None,
211            org_id: None,
212            location: None,
213            public_description: None,
214            id: None,
215            note: None,
216            done: None,
217            subject: None,
218            r#type: None,
219            user_id: None,
220            participants: None,
221            busy_flag: None,
222            attendees: None,
223            company_id: None,
224            reference_type: None,
225            reference_id: None,
226            conference_meeting_client: None,
227            conference_meeting_url: None,
228            conference_meeting_id: None,
229            add_time: None,
230            marked_as_done_time: None,
231            last_notification_time: None,
232            last_notification_user_id: None,
233            notification_language_id: None,
234            active_flag: None,
235            update_time: None,
236            update_user_id: None,
237            gcal_event_id: None,
238            google_calendar_id: None,
239            google_calendar_etag: None,
240            calendar_sync_include_context: None,
241            source_timezone: None,
242            rec_rule: None,
243            rec_rule_extension: None,
244            rec_master_activity_id: None,
245            series: None,
246            created_by_user_id: None,
247            location_subpremise: None,
248            location_street_number: None,
249            location_route: None,
250            location_sublocality: None,
251            location_locality: None,
252            location_admin_area_level_1: None,
253            location_admin_area_level_2: None,
254            location_country: None,
255            location_postal_code: None,
256            location_formatted_address: None,
257            org_name: None,
258            person_name: None,
259            deal_title: None,
260            owner_name: None,
261            person_dropbox_bcc: None,
262            deal_dropbox_bcc: None,
263            assigned_to_user_id: None,
264            file: None,
265        }
266    }
267}
268
269