pipedrive_rs/models/
activity_collection_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 ActivityCollectionResponseObject {
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    /// Whether the activity is done or not
50    #[serde(rename = "done", skip_serializing_if = "Option::is_none")]
51    pub done: Option<bool>,
52    /// The subject of the activity
53    #[serde(rename = "subject", skip_serializing_if = "Option::is_none")]
54    pub subject: Option<String>,
55    /// The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes.
56    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
57    pub r#type: Option<String>,
58    /// The ID of the user whom the activity is assigned to
59    #[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
60    pub user_id: Option<i32>,
61    /// 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.
62    #[serde(rename = "busy_flag", skip_serializing_if = "Option::is_none")]
63    pub busy_flag: Option<bool>,
64    /// The user's company ID
65    #[serde(rename = "company_id", skip_serializing_if = "Option::is_none")]
66    pub company_id: Option<i32>,
67    /// The ID of the Marketplace app, which is connected to this activity
68    #[serde(rename = "conference_meeting_client", skip_serializing_if = "Option::is_none")]
69    pub conference_meeting_client: Option<String>,
70    /// The link to join the meeting which is associated with this activity
71    #[serde(rename = "conference_meeting_url", skip_serializing_if = "Option::is_none")]
72    pub conference_meeting_url: Option<String>,
73    /// The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity
74    #[serde(rename = "conference_meeting_id", skip_serializing_if = "Option::is_none")]
75    pub conference_meeting_id: Option<String>,
76    /// The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS.
77    #[serde(rename = "add_time", skip_serializing_if = "Option::is_none")]
78    pub add_time: Option<String>,
79    /// The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS.
80    #[serde(rename = "marked_as_done_time", skip_serializing_if = "Option::is_none")]
81    pub marked_as_done_time: Option<String>,
82    /// Whether the activity is active or not
83    #[serde(rename = "active_flag", skip_serializing_if = "Option::is_none")]
84    pub active_flag: Option<bool>,
85    /// The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS.
86    #[serde(rename = "update_time", skip_serializing_if = "Option::is_none")]
87    pub update_time: Option<String>,
88    /// The ID of the user who was the last to update this activity
89    #[serde(rename = "update_user_id", skip_serializing_if = "Option::is_none")]
90    pub update_user_id: Option<i32>,
91    /// The timezone the activity was created in an external calendar
92    #[serde(rename = "source_timezone", skip_serializing_if = "Option::is_none")]
93    pub source_timezone: Option<String>,
94    /// A subfield of the location field. Indicates apartment/suite number.
95    #[serde(rename = "location_subpremise", skip_serializing_if = "Option::is_none")]
96    pub location_subpremise: Option<String>,
97    /// A subfield of the location field. Indicates house number.
98    #[serde(rename = "location_street_number", skip_serializing_if = "Option::is_none")]
99    pub location_street_number: Option<String>,
100    /// A subfield of the location field. Indicates street name.
101    #[serde(rename = "location_route", skip_serializing_if = "Option::is_none")]
102    pub location_route: Option<String>,
103    /// A subfield of the location field. Indicates district/sublocality.
104    #[serde(rename = "location_sublocality", skip_serializing_if = "Option::is_none")]
105    pub location_sublocality: Option<String>,
106    /// A subfield of the location field. Indicates city/town/village/locality.
107    #[serde(rename = "location_locality", skip_serializing_if = "Option::is_none")]
108    pub location_locality: Option<String>,
109    /// A subfield of the location field. Indicates state/county.
110    #[serde(rename = "location_admin_area_level_1", skip_serializing_if = "Option::is_none")]
111    pub location_admin_area_level_1: Option<String>,
112    /// A subfield of the location field. Indicates region.
113    #[serde(rename = "location_admin_area_level_2", skip_serializing_if = "Option::is_none")]
114    pub location_admin_area_level_2: Option<String>,
115    /// A subfield of the location field. Indicates country.
116    #[serde(rename = "location_country", skip_serializing_if = "Option::is_none")]
117    pub location_country: Option<String>,
118    /// A subfield of the location field. Indicates ZIP/postal code.
119    #[serde(rename = "location_postal_code", skip_serializing_if = "Option::is_none")]
120    pub location_postal_code: Option<String>,
121    /// A subfield of the location field. Indicates full/combined address.
122    #[serde(rename = "location_formatted_address", skip_serializing_if = "Option::is_none")]
123    pub location_formatted_address: Option<String>,
124}
125
126impl ActivityCollectionResponseObject {
127    pub fn new() -> ActivityCollectionResponseObject {
128        ActivityCollectionResponseObject {
129            due_date: None,
130            due_time: None,
131            duration: None,
132            deal_id: None,
133            lead_id: None,
134            person_id: None,
135            project_id: None,
136            org_id: None,
137            location: None,
138            public_description: None,
139            id: None,
140            done: None,
141            subject: None,
142            r#type: None,
143            user_id: None,
144            busy_flag: None,
145            company_id: None,
146            conference_meeting_client: None,
147            conference_meeting_url: None,
148            conference_meeting_id: None,
149            add_time: None,
150            marked_as_done_time: None,
151            active_flag: None,
152            update_time: None,
153            update_user_id: None,
154            source_timezone: None,
155            location_subpremise: None,
156            location_street_number: None,
157            location_route: None,
158            location_sublocality: None,
159            location_locality: None,
160            location_admin_area_level_1: None,
161            location_admin_area_level_2: None,
162            location_country: None,
163            location_postal_code: None,
164            location_formatted_address: None,
165        }
166    }
167}
168
169