1use serde::{Serialize, Deserialize};
2#[derive(Debug, Serialize, Deserialize, Default)]
3pub struct MailSettingsFooter {
4 pub html_content: Option<String>,
6 pub enabled: Option<bool>,
8 pub plain_content: Option<String>,
10}
11impl std::fmt::Display for MailSettingsFooter {
12 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
13 write!(f, "{}", serde_json::to_string(self).unwrap())
14 }
15}
16#[derive(Debug, Serialize, Deserialize)]
17pub struct PostMarketingSendersRequired {
18 pub country: String,
19 pub city: String,
20 pub nickname: String,
21 pub from: serde_json::Value,
22 pub address: String,
23}
24impl std::fmt::Display for PostMarketingSendersRequired {
25 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
26 write!(f, "{}", serde_json::to_string(self).unwrap())
27 }
28}
29#[derive(Debug, Serialize, Deserialize)]
30pub struct ContactdbCustomFieldWithId {
31 pub contactdb_custom_field: ContactdbCustomField,
32 pub id: f64,
34}
35impl std::fmt::Display for ContactdbCustomFieldWithId {
36 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
37 write!(f, "{}", serde_json::to_string(self).unwrap())
38 }
39}
40#[derive(Debug, Serialize, Deserialize, Default)]
41pub struct IpPool {
42 pub name: String,
44}
45impl std::fmt::Display for IpPool {
46 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
47 write!(f, "{}", serde_json::to_string(self).unwrap())
48 }
49}
50#[derive(Debug, Serialize, Deserialize)]
51pub struct SinglesendRequest {
52 pub email_config: Option<serde_json::Value>,
53 pub name: String,
55 pub categories: Option<Vec<String>>,
57 pub send_at: Option<String>,
59 pub send_to: Option<serde_json::Value>,
60}
61impl std::fmt::Display for SinglesendRequest {
62 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
63 write!(f, "{}", serde_json::to_string(self).unwrap())
64 }
65}
66#[derive(Debug, Serialize, Deserialize, Default)]
67pub struct ContactdbRecipientCount {
68 pub recipient_count: f64,
70}
71impl std::fmt::Display for ContactdbRecipientCount {
72 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
73 write!(f, "{}", serde_json::to_string(self).unwrap())
74 }
75}
76#[derive(Debug, Serialize, Deserialize)]
77pub struct SingleContactRequest {
78 pub contact: Option<serde_json::Value>,
79 pub list_ids: Option<Vec<String>>,
81}
82impl std::fmt::Display for SingleContactRequest {
83 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
84 write!(f, "{}", serde_json::to_string(self).unwrap())
85 }
86}
87#[derive(Debug, Serialize, Deserialize)]
88pub struct ApiKeyNameIdScopes {
89 pub api_key_name_id: ApiKeyNameId,
90 pub scopes: Vec<String>,
92}
93impl std::fmt::Display for ApiKeyNameIdScopes {
94 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
95 write!(f, "{}", serde_json::to_string(self).unwrap())
96 }
97}
98#[derive(Debug, Serialize, Deserialize, Default)]
99pub struct PartnerSettingsNewRelic {
100 pub enable_subuser_statistics: Option<bool>,
102 pub license_key: String,
104 pub enabled: bool,
106}
107impl std::fmt::Display for PartnerSettingsNewRelic {
108 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
109 write!(f, "{}", serde_json::to_string(self).unwrap())
110 }
111}
112#[derive(Debug, Serialize, Deserialize, Default)]
113pub struct FromEmailObject {
114 pub email: String,
116 pub name: Option<String>,
118}
119impl std::fmt::Display for FromEmailObject {
120 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
121 write!(f, "{}", serde_json::to_string(self).unwrap())
122 }
123}
124#[derive(Debug, Serialize, Deserialize)]
125pub struct List {
126 pub name: Option<String>,
128 pub contact_count: Option<i64>,
130 pub id: Option<String>,
132 pub metadata: Option<Selfmetadata>,
133}
134impl std::fmt::Display for List {
135 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
136 write!(f, "{}", serde_json::to_string(self).unwrap())
137 }
138}
139#[derive(Debug, Serialize, Deserialize, Default)]
140pub struct IpAccessResponse {
141 pub result: Option<Vec<serde_json::Value>>,
143}
144impl std::fmt::Display for IpAccessResponse {
145 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
146 write!(f, "{}", serde_json::to_string(self).unwrap())
147 }
148}
149#[derive(Debug, Serialize, Deserialize)]
150pub struct IpWarmupResponse(pub Vec<serde_json::Value>);
151#[derive(Debug, Serialize, Deserialize, Default)]
152pub struct CustomFieldsById {}
153impl std::fmt::Display for CustomFieldsById {
154 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
155 write!(f, "{}", serde_json::to_string(self).unwrap())
156 }
157}
158#[derive(Debug, Serialize, Deserialize)]
159pub struct AdvancedStatsClicksOpens {
160 pub advanced_stats_clicks: AdvancedStatsClicks,
162 pub advanced_stats_opens: AdvancedStatsOpens,
164}
165impl std::fmt::Display for AdvancedStatsClicksOpens {
166 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
167 write!(f, "{}", serde_json::to_string(self).unwrap())
168 }
169}
170#[derive(Debug, Serialize, Deserialize, Default)]
171pub struct ContactdbList {
172 pub id: i64,
174 pub recipient_count: i64,
176 pub name: String,
178}
179impl std::fmt::Display for ContactdbList {
180 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
181 write!(f, "{}", serde_json::to_string(self).unwrap())
182 }
183}
184#[derive(Debug, Serialize, Deserialize, Default)]
185pub struct ClickTracking {
186 pub enabled: bool,
188 pub enable_text: bool,
190}
191impl std::fmt::Display for ClickTracking {
192 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
193 write!(f, "{}", serde_json::to_string(self).unwrap())
194 }
195}
196#[derive(Debug, Serialize, Deserialize, Default)]
197pub struct Link {
198 pub href: Option<String>,
199 pub rel: Option<String>,
200}
201impl std::fmt::Display for Link {
202 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
203 write!(f, "{}", serde_json::to_string(self).unwrap())
204 }
205}
206#[derive(Debug, Serialize, Deserialize)]
207pub struct SsoIntegration {
208 pub audience_url: String,
210 pub create_integration_request: CreateIntegrationRequest,
211 pub single_signon_url: String,
213 pub last_updated: f64,
215 pub id: String,
217}
218impl std::fmt::Display for SsoIntegration {
219 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
220 write!(f, "{}", serde_json::to_string(self).unwrap())
221 }
222}
223#[derive(Debug, Serialize, Deserialize)]
224pub struct TneSenderId {
225 pub updated_at: i64,
227 pub created_at: i64,
229 pub verified: serde_json::Value,
231 pub id: i64,
233 pub senders_id_request_body: SendersIdRequestBody,
234 pub locked: bool,
236}
237impl std::fmt::Display for TneSenderId {
238 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
239 write!(f, "{}", serde_json::to_string(self).unwrap())
240 }
241}
242#[derive(Debug, Serialize, Deserialize, Default)]
243pub struct ContactdbSegments {
244 pub recipient_count: Option<f64>,
246 pub name: String,
248 pub list_id: Option<i64>,
250 pub conditions: Vec<ContactdbSegmentsConditions>,
252}
253impl std::fmt::Display for ContactdbSegments {
254 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
255 write!(f, "{}", serde_json::to_string(self).unwrap())
256 }
257}
258#[derive(Debug, Serialize, Deserialize)]
259pub struct LinkBranding200Response {
260 pub default: bool,
262 pub dns: serde_json::Value,
264 pub domain: String,
266 pub user_id: i64,
268 pub subdomain: Option<String>,
270 pub username: String,
272 pub id: i64,
274 pub legacy: bool,
276 pub valid: bool,
278}
279impl std::fmt::Display for LinkBranding200Response {
280 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
281 write!(f, "{}", serde_json::to_string(self).unwrap())
282 }
283}
284#[derive(Debug, Serialize, Deserialize)]
285pub struct SsoErrorResponse(pub Vec<serde_json::Value>);
286#[derive(Debug, Serialize, Deserialize)]
287pub struct SsoTeammatesPatchResponse {
288 pub address: String,
290 pub website: String,
292 pub phone: String,
294 pub sso_teammate_response: SsoTeammateResponse,
295 pub company: String,
297 pub zip: String,
299 pub city: String,
301 pub email: String,
302 pub country: String,
304 pub address2: String,
306 pub state: String,
308 pub user_type: String,
310 pub scopes: Vec<String>,
312}
313impl std::fmt::Display for SsoTeammatesPatchResponse {
314 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
315 write!(f, "{}", serde_json::to_string(self).unwrap())
316 }
317}
318#[derive(Debug, Serialize, Deserialize)]
319pub struct ContactExport {
320 pub expires_at: String,
322 pub id: String,
323 pub created_at: String,
325 pub message: Option<String>,
327 pub urls: Option<Vec<String>>,
329 pub completed_at: Option<String>,
331 pub updated_at: String,
333 pub metadata: Option<Metadata>,
334 pub contact_count: Option<i64>,
336 pub status: String,
338}
339impl std::fmt::Display for ContactExport {
340 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
341 write!(f, "{}", serde_json::to_string(self).unwrap())
342 }
343}
344#[derive(Debug, Serialize, Deserialize)]
345pub struct ReverseDns {
346 pub last_validation_attempt_at: Option<i64>,
348 pub domain: String,
350 pub id: i64,
352 pub ip: String,
354 pub subdomain: Option<String>,
356 pub users: Vec<serde_json::Value>,
358 pub valid: bool,
360 pub a_record: serde_json::Value,
361 pub rdns: String,
363 pub legacy: bool,
365}
366impl std::fmt::Display for ReverseDns {
367 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
368 write!(f, "{}", serde_json::to_string(self).unwrap())
369 }
370}
371#[derive(Debug, Serialize, Deserialize)]
372pub struct DesignInput {
373 pub design_duplicate_input: DesignDuplicateInput,
374 pub design_common_fields: DesignCommonFields,
375 pub plain_content: String,
377 pub html_content: String,
379}
380impl std::fmt::Display for DesignInput {
381 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
382 write!(f, "{}", serde_json::to_string(self).unwrap())
383 }
384}
385#[derive(Debug, Serialize, Deserialize, Default)]
386pub struct PatchAsmGroupsGroupIdRequired {
387 pub is_default: bool,
388 pub group_id: String,
389 pub description: String,
390 pub name: String,
391}
392impl std::fmt::Display for PatchAsmGroupsGroupIdRequired {
393 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
394 write!(f, "{}", serde_json::to_string(self).unwrap())
395 }
396}
397#[derive(Debug, Serialize, Deserialize, Default)]
398pub struct PostMarketingSegmentsRequired {
399 pub parent_list_id: String,
400 pub parent_list_ids: Vec<String>,
401 pub query_dsl: String,
402 pub name: String,
403}
404impl std::fmt::Display for PostMarketingSegmentsRequired {
405 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
406 write!(f, "{}", serde_json::to_string(self).unwrap())
407 }
408}
409#[derive(Debug, Serialize, Deserialize, Default)]
410pub struct UserProfile {
411 pub address: Option<String>,
413 pub company: Option<String>,
415 pub first_name: Option<String>,
417 pub address2: Option<String>,
419 pub country: Option<String>,
421 pub last_name: Option<String>,
423 pub website: Option<String>,
425 pub city: Option<String>,
427 pub phone: Option<String>,
429 pub zip: Option<String>,
431 pub state: Option<String>,
433}
434impl std::fmt::Display for UserProfile {
435 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
436 write!(f, "{}", serde_json::to_string(self).unwrap())
437 }
438}
439#[derive(Debug, Serialize, Deserialize, Default)]
440pub struct SegmentUpdate {
441 pub name: Option<String>,
443 pub query_dsl: Option<String>,
445}
446impl std::fmt::Display for SegmentUpdate {
447 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
448 write!(f, "{}", serde_json::to_string(self).unwrap())
449 }
450}
451#[derive(Debug, Serialize, Deserialize)]
452pub struct StatsAdvancedStatsBaseSchema(pub Vec<serde_json::Value>);
453#[derive(Debug, Serialize, Deserialize, Default)]
454pub struct Subuser {
455 pub disabled: bool,
457 pub username: String,
459 pub email: String,
461 pub id: f64,
463}
464impl std::fmt::Display for Subuser {
465 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
466 write!(f, "{}", serde_json::to_string(self).unwrap())
467 }
468}
469#[derive(Debug, Serialize, Deserialize, Default)]
470pub struct TransactionalTemplateVersionCreate {
471 pub editor: Option<String>,
473 pub test_data: Option<String>,
475 pub subject: String,
477 pub active: Option<i64>,
479 pub html_content: Option<String>,
481 pub plain_content: Option<String>,
483 pub name: String,
485 pub generate_plain_content: Option<bool>,
487}
488impl std::fmt::Display for TransactionalTemplateVersionCreate {
489 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
490 write!(f, "{}", serde_json::to_string(self).unwrap())
491 }
492}
493#[derive(Debug, Serialize, Deserialize, Default)]
494pub struct Webhook {
495 pub nonce: String,
497 pub url: String,
499}
500impl std::fmt::Display for Webhook {
501 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
502 write!(f, "{}", serde_json::to_string(self).unwrap())
503 }
504}
505#[derive(Debug, Serialize, Deserialize)]
506pub struct ReservedFieldDefinitionsResponse(pub Vec<serde_json::Value>);
507#[derive(Debug, Serialize, Deserialize, Default)]
508pub struct InvalidEmail {
509 pub created: Option<i64>,
511 pub email: Option<String>,
513 pub reason: Option<String>,
515}
516impl std::fmt::Display for InvalidEmail {
517 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
518 write!(f, "{}", serde_json::to_string(self).unwrap())
519 }
520}
521#[derive(Debug, Serialize, Deserialize)]
522pub struct ToEmailArray(pub Vec<serde_json::Value>);
523#[derive(Debug, Serialize, Deserialize)]
524pub struct DesignCommonFields {
525 pub subject: String,
527 pub categories: Vec<String>,
529 pub design_duplicate_input: DesignDuplicateInput,
530 pub generate_plain_content: bool,
532}
533impl std::fmt::Display for DesignCommonFields {
534 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
535 write!(f, "{}", serde_json::to_string(self).unwrap())
536 }
537}
538#[derive(Debug, Serialize, Deserialize, Default)]
539pub struct MailSettingsAddressWhitelabel {
540 pub list: Option<Vec<String>>,
542 pub enabled: Option<bool>,
544}
545impl std::fmt::Display for MailSettingsAddressWhitelabel {
546 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
547 write!(f, "{}", serde_json::to_string(self).unwrap())
548 }
549}
550#[derive(Debug, Serialize, Deserialize, Default)]
551pub struct ReplyToEmailObject {
552 pub name: Option<String>,
554 pub email: String,
556}
557impl std::fmt::Display for ReplyToEmailObject {
558 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
559 write!(f, "{}", serde_json::to_string(self).unwrap())
560 }
561}
562#[derive(Debug, Serialize, Deserialize, Default)]
563pub struct PatchUserWebhooksEventSettingsRequired {
564 pub bounce: bool,
565 pub spam_report: bool,
566 pub click: bool,
567 pub enabled: bool,
568 pub unsubscribe: bool,
569 pub url: String,
570 pub deferred: bool,
571 pub processed: bool,
572 pub dropped: bool,
573 pub group_resubscribe: bool,
574 pub delivered: bool,
575 pub open: bool,
576 pub group_unsubscribe: bool,
577}
578impl std::fmt::Display for PatchUserWebhooksEventSettingsRequired {
579 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
580 write!(f, "{}", serde_json::to_string(self).unwrap())
581 }
582}
583#[derive(Debug, Serialize, Deserialize, Default)]
584pub struct SegmentSummary {
585 pub updated_at: String,
587 pub created_at: String,
590 pub parent_list_id: Option<String>,
592 pub id: String,
593 pub sample_updated_at: String,
595 pub next_sample_update: Option<String>,
597 pub contacts_count: i64,
598 pub name: Option<String>,
599}
600impl std::fmt::Display for SegmentSummary {
601 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
602 write!(f, "{}", serde_json::to_string(self).unwrap())
603 }
604}
605#[derive(Debug, Serialize, Deserialize, Default)]
606pub struct TransactionalTemplateWarning {
607 pub message: Option<String>,
609}
610impl std::fmt::Display for TransactionalTemplateWarning {
611 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
612 write!(f, "{}", serde_json::to_string(self).unwrap())
613 }
614}
615#[derive(Debug, Serialize, Deserialize, Default)]
616pub struct Metrics {
617 pub bounces: i64,
618 pub unsubscribes: i64,
619 pub clicks: i64,
620 pub spam_report_drops: i64,
621 pub invalid_emails: i64,
622 pub requests: i64,
623 pub unique_clicks: i64,
624 pub spam_reports: i64,
625 pub bounce_drops: i64,
626 pub unique_opens: i64,
627 pub opens: i64,
628 pub delivered: i64,
629}
630impl std::fmt::Display for Metrics {
631 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
632 write!(f, "{}", serde_json::to_string(self).unwrap())
633 }
634}
635#[derive(Debug, Serialize, Deserialize)]
636pub struct AllSegmentsResponse {
637 pub query_version: String,
639 pub created_at: String,
641 pub status: SegmentStatusResponse,
643 pub contacts_count: i64,
645 pub metadata: Option<Metadata>,
646 pub next_sample_update: String,
648 pub updated_at: String,
650 pub sample_updated_at: String,
652 pub name: String,
654 pub parent_list_ids: Vec<String>,
656 pub id: String,
658}
659impl std::fmt::Display for AllSegmentsResponse {
660 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
661 write!(f, "{}", serde_json::to_string(self).unwrap())
662 }
663}
664#[derive(Debug, Serialize, Deserialize, Default)]
665pub struct Monitor {
666 pub frequency: f64,
668 pub email: String,
670}
671impl std::fmt::Display for Monitor {
672 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
673 write!(f, "{}", serde_json::to_string(self).unwrap())
674 }
675}
676#[derive(Debug, Serialize, Deserialize, Default)]
677pub struct ApiError {
678 pub message: String,
679 pub field: String,
680 pub error_id: String,
681}
682impl std::fmt::Display for ApiError {
683 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
684 write!(f, "{}", serde_json::to_string(self).unwrap())
685 }
686}
687#[derive(Debug, Serialize, Deserialize, Default)]
688pub struct ContactdbRecipient {
689 pub recipients: Option<Vec<serde_json::Value>>,
690}
691impl std::fmt::Display for ContactdbRecipient {
692 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
693 write!(f, "{}", serde_json::to_string(self).unwrap())
694 }
695}
696#[derive(Debug, Serialize, Deserialize, Default)]
697pub struct VerifiedSenderResponseSchema {
698 pub verified: Option<bool>,
699 pub zip: Option<String>,
700 pub address2: Option<String>,
701 pub city: Option<String>,
702 pub from_name: Option<String>,
703 pub reply_to: Option<String>,
704 pub nickname: Option<String>,
705 pub from_email: Option<String>,
706 pub locked: Option<bool>,
707 pub state: Option<String>,
708 pub country: Option<String>,
709 pub reply_to_name: Option<String>,
710 pub address: Option<String>,
711 pub id: Option<i64>,
712}
713impl std::fmt::Display for VerifiedSenderResponseSchema {
714 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
715 write!(f, "{}", serde_json::to_string(self).unwrap())
716 }
717}
718#[derive(Debug, Serialize, Deserialize)]
719pub struct AutomationsLinkStatsResponse {
720 pub total_clicks: i64,
721 pub results: Vec<serde_json::Value>,
723 pub metadata: LinkTrackingMetadata,
724}
725impl std::fmt::Display for AutomationsLinkStatsResponse {
726 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
727 write!(f, "{}", serde_json::to_string(self).unwrap())
728 }
729}
730#[derive(Debug, Serialize, Deserialize, Default)]
731pub struct GlobalErrorResponseSchema {
732 pub id: Option<String>,
733 pub errors: Option<Vec<serde_json::Value>>,
734}
735impl std::fmt::Display for GlobalErrorResponseSchema {
736 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
737 write!(f, "{}", serde_json::to_string(self).unwrap())
738 }
739}
740#[derive(Debug, Serialize, Deserialize, Default)]
741pub struct ApiErrors {
742 pub errors: Option<Vec<ApiError>>,
743}
744impl std::fmt::Display for ApiErrors {
745 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
746 write!(f, "{}", serde_json::to_string(self).unwrap())
747 }
748}
749#[derive(Debug, Serialize, Deserialize, Default)]
750pub struct AbbvMessage {
751 pub last_event_time: String,
753 pub from_email: String,
754 pub msg_id: String,
755 pub subject: String,
756 pub to_email: String,
757 pub opens_count: i64,
758 pub status: String,
759 pub clicks_count: i64,
760}
761impl std::fmt::Display for AbbvMessage {
762 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
763 write!(f, "{}", serde_json::to_string(self).unwrap())
764 }
765}
766#[derive(Debug, Serialize, Deserialize, Default)]
767pub struct Metadata {
768 pub prev: Option<String>,
770 pub count: Option<f64>,
772 pub self_: Option<String>,
774 pub next: Option<String>,
776}
777impl std::fmt::Display for Metadata {
778 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
779 write!(f, "{}", serde_json::to_string(self).unwrap())
780 }
781}
782#[derive(Debug, Serialize, Deserialize, Default)]
783pub struct CustomFieldDefinitionsResponse {
784 pub name: String,
785 pub field_type: String,
786 pub id: String,
787}
788impl std::fmt::Display for CustomFieldDefinitionsResponse {
789 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
790 write!(f, "{}", serde_json::to_string(self).unwrap())
791 }
792}
793#[derive(Debug, Serialize, Deserialize, Default)]
794pub struct EventWebhookUpdateOauthRequest {
795 pub delivered: bool,
797 pub oauth_client_id: Option<String>,
799 pub unsubscribe: bool,
801 pub processed: bool,
803 pub click: bool,
805 pub enabled: bool,
807 pub oauth_client_secret: Option<String>,
809 pub bounce: bool,
811 pub group_resubscribe: bool,
813 pub dropped: bool,
815 pub deferred: bool,
817 pub spam_report: bool,
819 pub group_unsubscribe: bool,
821 pub url: String,
823 pub open: bool,
825 pub oauth_token_url: Option<String>,
827}
828impl std::fmt::Display for EventWebhookUpdateOauthRequest {
829 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
830 write!(f, "{}", serde_json::to_string(self).unwrap())
831 }
832}
833#[derive(Debug, Serialize, Deserialize, Default)]
834pub struct Selfmetadata {
835 pub self_: Option<String>,
837}
838impl std::fmt::Display for Selfmetadata {
839 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
840 write!(f, "{}", serde_json::to_string(self).unwrap())
841 }
842}
843#[derive(Debug, Serialize, Deserialize)]
844pub struct AuthenticationDomain {
845 pub ips: Vec<String>,
847 pub domain: String,
849 pub id: f64,
851 pub subdomain: String,
853 pub custom_spf: bool,
855 pub legacy: bool,
857 pub username: String,
859 pub default: bool,
861 pub automatic_security: bool,
863 pub dns: serde_json::Value,
865 pub user_id: f64,
867 pub valid: bool,
869}
870impl std::fmt::Display for AuthenticationDomain {
871 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
872 write!(f, "{}", serde_json::to_string(self).unwrap())
873 }
874}
875#[derive(Debug, Serialize, Deserialize, Default)]
876pub struct MailSettingsForwardSpam {
877 pub email: Option<String>,
879 pub enabled: Option<bool>,
881}
882impl std::fmt::Display for MailSettingsForwardSpam {
883 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
884 write!(f, "{}", serde_json::to_string(self).unwrap())
885 }
886}
887#[derive(Debug, Serialize, Deserialize, Default)]
888pub struct SinglesendWarning {
889 pub warnings: Option<Vec<serde_json::Value>>,
890}
891impl std::fmt::Display for SinglesendWarning {
892 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
893 write!(f, "{}", serde_json::to_string(self).unwrap())
894 }
895}
896#[derive(Debug, Serialize, Deserialize)]
897pub struct PostMailSendRequired {
898 pub subject: String,
899 pub content: Vec<serde_json::Value>,
900 pub from: FromEmailObject,
901 pub personalizations: Vec<serde_json::Value>,
902}
903impl std::fmt::Display for PostMailSendRequired {
904 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
905 write!(f, "{}", serde_json::to_string(self).unwrap())
906 }
907}
908#[derive(Debug, Serialize, Deserialize)]
909pub struct SsoTeammateResponse {
910 pub username: String,
912 pub sso_teammate_common_fields: SsoTeammateCommonFields,
913 pub is_sso: bool,
915}
916impl std::fmt::Display for SsoTeammateResponse {
917 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
918 write!(f, "{}", serde_json::to_string(self).unwrap())
919 }
920}
921#[derive(Debug, Serialize, Deserialize, Default)]
922pub struct AdvancedStatsOpens {
923 pub opens: Option<i64>,
925 pub unique_opens: Option<i64>,
927}
928impl std::fmt::Display for AdvancedStatsOpens {
929 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
930 write!(f, "{}", serde_json::to_string(self).unwrap())
931 }
932}
933#[derive(Debug, Serialize, Deserialize)]
934pub struct AutomationsResponse {
935 pub metadata: Option<Metadata>,
936 pub results: Vec<serde_json::Value>,
937}
938impl std::fmt::Display for AutomationsResponse {
939 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
940 write!(f, "{}", serde_json::to_string(self).unwrap())
941 }
942}
943#[derive(Debug, Serialize, Deserialize, Default)]
944pub struct CampaignRequest {
945 pub ip_pool: Option<String>,
947 pub subject: Option<String>,
949 pub categories: Option<Vec<String>>,
951 pub plain_content: Option<String>,
953 pub custom_unsubscribe_url: Option<String>,
955 pub sender_id: Option<i64>,
957 pub list_ids: Option<Vec<i64>>,
959 pub segment_ids: Option<Vec<i64>>,
961 pub suppression_group_id: Option<i64>,
963 pub title: String,
965 pub editor: Option<String>,
967 pub html_content: Option<String>,
969}
970impl std::fmt::Display for CampaignRequest {
971 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
972 write!(f, "{}", serde_json::to_string(self).unwrap())
973 }
974}
975#[derive(Debug, Serialize, Deserialize, Default)]
976pub struct EventWebhookResponse {
977 pub oauth_client_id: Option<String>,
979 pub url: String,
981 pub group_resubscribe: bool,
983 pub processed: bool,
985 pub enabled: bool,
987 pub open: bool,
989 pub oauth_token_url: Option<String>,
991 pub delivered: bool,
993 pub dropped: bool,
995 pub unsubscribe: bool,
997 pub bounce: bool,
999 pub deferred: bool,
1001 pub spam_report: bool,
1003 pub click: bool,
1005 pub group_unsubscribe: bool,
1007}
1008impl std::fmt::Display for EventWebhookResponse {
1009 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1010 write!(f, "{}", serde_json::to_string(self).unwrap())
1011 }
1012}
1013#[derive(Debug, Serialize, Deserialize)]
1014pub struct BlocksResponse(pub Vec<serde_json::Value>);
1015#[derive(Debug, Serialize, Deserialize)]
1016pub struct SenderId {
1017 pub updated_at: i64,
1019 pub id: i64,
1021 pub verified: bool,
1023 pub sender_id_request: SenderIdRequest,
1024 pub created_at: i64,
1026 pub locked: bool,
1028}
1029impl std::fmt::Display for SenderId {
1030 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1031 write!(f, "{}", serde_json::to_string(self).unwrap())
1032 }
1033}
1034#[derive(Debug, Serialize, Deserialize, Default)]
1035pub struct PostSsoTeammatesRequired {
1036 pub first_name: String,
1037 pub email: String,
1038 pub is_admin: bool,
1039 pub is_read_only: bool,
1040 pub last_name: String,
1041 pub scopes: Vec<String>,
1042}
1043impl std::fmt::Display for PostSsoTeammatesRequired {
1044 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1045 write!(f, "{}", serde_json::to_string(self).unwrap())
1046 }
1047}
1048#[derive(Debug, Serialize, Deserialize, Default)]
1049pub struct SubuserStats {
1050 pub stats: Option<Vec<serde_json::Value>>,
1052 pub date: Option<String>,
1054}
1055impl std::fmt::Display for SubuserStats {
1056 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1057 write!(f, "{}", serde_json::to_string(self).unwrap())
1058 }
1059}
1060#[derive(Debug, Serialize, Deserialize, Default)]
1061pub struct VerifiedSenderRequestSchema {
1062 pub nickname: String,
1063 pub address2: Option<String>,
1064 pub reply_to_name: Option<String>,
1065 pub city: Option<String>,
1066 pub address: Option<String>,
1067 pub from_name: Option<String>,
1068 pub state: Option<String>,
1069 pub from_email: String,
1070 pub zip: Option<String>,
1071 pub country: Option<String>,
1072 pub reply_to: String,
1073}
1074impl std::fmt::Display for VerifiedSenderRequestSchema {
1075 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1076 write!(f, "{}", serde_json::to_string(self).unwrap())
1077 }
1078}
1079#[derive(Debug, Serialize, Deserialize, Default)]
1080pub struct PatchCampaignsCampaignIdRequired {
1081 pub campaign_id: i64,
1082 pub categories: Vec<String>,
1083 pub subject: String,
1084 pub html_content: String,
1085 pub title: String,
1086 pub plain_content: String,
1087}
1088impl std::fmt::Display for PatchCampaignsCampaignIdRequired {
1089 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1090 write!(f, "{}", serde_json::to_string(self).unwrap())
1091 }
1092}
1093#[derive(Debug, Serialize, Deserialize, Default)]
1094pub struct AbtestSummary {
1095 pub winner_criteria: String,
1097 pub winning_template_id: String,
1099 pub test_percentage: i64,
1101 pub duration: String,
1103 pub winner_selected_at: Option<String>,
1105 pub expiration_date: Option<String>,
1107 pub type_: String,
1109}
1110impl std::fmt::Display for AbtestSummary {
1111 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1112 write!(f, "{}", serde_json::to_string(self).unwrap())
1113 }
1114}
1115#[derive(Debug, Serialize, Deserialize)]
1116pub struct GlobalEmptyRequest(pub serde_json::Value);
1117#[derive(Debug, Serialize, Deserialize, Default)]
1118pub struct SuppressionsRequest {
1119 pub recipient_emails: Vec<String>,
1121}
1122impl std::fmt::Display for SuppressionsRequest {
1123 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1124 write!(f, "{}", serde_json::to_string(self).unwrap())
1125 }
1126}
1127#[derive(Debug, Serialize, Deserialize)]
1128pub struct SendersIdRequestBody {
1129 pub country: String,
1131 pub address: String,
1133 pub city: String,
1135 pub from: serde_json::Value,
1136 pub address2: Option<String>,
1138 pub zip: Option<String>,
1140 pub state: Option<String>,
1142 pub nickname: String,
1144 pub reply_to: Option<serde_json::Value>,
1145}
1146impl std::fmt::Display for SendersIdRequestBody {
1147 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1148 write!(f, "{}", serde_json::to_string(self).unwrap())
1149 }
1150}
1151#[derive(Debug, Serialize, Deserialize, Default)]
1152pub struct MailSettingsBouncePurge {
1153 pub enabled: Option<bool>,
1155 pub hard_bounces: Option<i64>,
1157 pub soft_bounces: Option<i64>,
1159}
1160impl std::fmt::Display for MailSettingsBouncePurge {
1161 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1162 write!(f, "{}", serde_json::to_string(self).unwrap())
1163 }
1164}
1165#[derive(Debug, Serialize, Deserialize, Default)]
1166pub struct MailSettingsForwardBounce {
1167 pub email: Option<String>,
1169 pub enabled: Option<bool>,
1171}
1172impl std::fmt::Display for MailSettingsForwardBounce {
1173 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1174 write!(f, "{}", serde_json::to_string(self).unwrap())
1175 }
1176}
1177#[derive(Debug, Serialize, Deserialize, Default)]
1178pub struct TransactionalTemplatesVersionOutputLean {
1179 pub template_id: Option<String>,
1181 pub name: Option<String>,
1183 pub updated_at: Option<String>,
1185 pub subject: Option<String>,
1187 pub editor: Option<String>,
1189 pub id: Option<String>,
1191 pub generate_plain_content: Option<bool>,
1193 pub active: Option<i64>,
1195 pub thumbnail_url: Option<String>,
1197}
1198impl std::fmt::Display for TransactionalTemplatesVersionOutputLean {
1199 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1200 write!(f, "{}", serde_json::to_string(self).unwrap())
1201 }
1202}
1203#[derive(Debug, Serialize, Deserialize)]
1204pub struct TransactionalTemplateVersionOutput {
1205 pub transactional_templates_version_output_lean: TransactionalTemplatesVersionOutputLean,
1206 pub warnings: Vec<TransactionalTemplateWarning>,
1207 pub transactional_template_version_create: TransactionalTemplateVersionCreate,
1208}
1209impl std::fmt::Display for TransactionalTemplateVersionOutput {
1210 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1211 write!(f, "{}", serde_json::to_string(self).unwrap())
1212 }
1213}
1214#[derive(Debug, Serialize, Deserialize, Default)]
1215pub struct ContactdbCustomField {
1216 pub name: Option<String>,
1218 pub type_: Option<String>,
1220}
1221impl std::fmt::Display for ContactdbCustomField {
1222 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1223 write!(f, "{}", serde_json::to_string(self).unwrap())
1224 }
1225}
1226#[derive(Debug, Serialize, Deserialize, Default)]
1227pub struct IpPoolResponse {
1228 pub name: Option<String>,
1230}
1231impl std::fmt::Display for IpPoolResponse {
1232 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1233 write!(f, "{}", serde_json::to_string(self).unwrap())
1234 }
1235}
1236#[derive(Debug, Serialize, Deserialize)]
1237pub struct SegmentResponse {
1238 pub next_sample_update: String,
1240 pub contacts_sample: Vec<ContactResponse>,
1242 pub status: SegmentStatusResponse,
1244 pub id: String,
1246 pub name: String,
1248 pub updated_at: String,
1250 pub created_at: String,
1252 pub query_version: String,
1254 pub parent_list_ids: Vec<String>,
1256 pub sample_updated_at: String,
1258 pub query_dsl: String,
1260 pub contacts_count: i64,
1262}
1263impl std::fmt::Display for SegmentResponse {
1264 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1265 write!(f, "{}", serde_json::to_string(self).unwrap())
1266 }
1267}
1268#[derive(Debug, Serialize, Deserialize)]
1269pub struct SinglesendsLinkStatsResponse {
1270 pub metadata: LinkTrackingMetadata,
1271 pub results: Vec<serde_json::Value>,
1273 pub total_clicks: Option<i64>,
1274}
1275impl std::fmt::Display for SinglesendsLinkStatsResponse {
1276 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1277 write!(f, "{}", serde_json::to_string(self).unwrap())
1278 }
1279}
1280#[derive(Debug, Serialize, Deserialize, Default)]
1281pub struct PostDesignRequired {
1282 pub plain_content: String,
1283 pub editor: String,
1284 pub categories: Vec<String>,
1285 pub name: String,
1286 pub generate_plain_content: bool,
1287 pub subject: String,
1288 pub html_content: String,
1289}
1290impl std::fmt::Display for PostDesignRequired {
1291 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1292 write!(f, "{}", serde_json::to_string(self).unwrap())
1293 }
1294}
1295#[derive(Debug, Serialize, Deserialize)]
1296pub struct ContactDetails3 {
1297 pub line: Option<String>,
1298 pub address_line2: Option<String>,
1299 pub country: Option<String>,
1300 pub id: String,
1301 pub custom_fields: Option<serde_json::Value>,
1302 pub state_province_region: Option<String>,
1303 pub first_name: Option<String>,
1304 pub phone_number: Option<String>,
1305 pub postal_code: Option<String>,
1306 pub email: Option<String>,
1307 pub city: Option<String>,
1308 pub facebook: Option<String>,
1309 pub created_at: String,
1310 pub alternate_emails: Option<Vec<String>>,
1311 pub segment_ids: Vec<String>,
1312 pub list_ids: Vec<String>,
1313 pub address_line1: Option<String>,
1314 pub metadata: Option<Selfmetadata>,
1315 pub updated_at: String,
1316 pub whatsapp: Option<String>,
1317 pub last_name: Option<String>,
1318 pub unique_name: Option<String>,
1319}
1320impl std::fmt::Display for ContactDetails3 {
1321 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1322 write!(f, "{}", serde_json::to_string(self).unwrap())
1323 }
1324}
1325#[derive(Debug, Serialize, Deserialize)]
1326pub struct ContactdbCustomFieldWithIdValue {
1327 pub value: Option<String>,
1329 pub contactdb_custom_field_with_id: ContactdbCustomFieldWithId,
1330}
1331impl std::fmt::Display for ContactdbCustomFieldWithIdValue {
1332 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1333 write!(f, "{}", serde_json::to_string(self).unwrap())
1334 }
1335}
1336#[derive(Debug, Serialize, Deserialize, Default)]
1337pub struct PostSsoIntegrationsRequired {
1338 pub enabled: bool,
1339 pub entity_id: String,
1340 pub signout_url: String,
1341 pub name: String,
1342 pub signin_url: String,
1343}
1344impl std::fmt::Display for PostSsoIntegrationsRequired {
1345 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1346 write!(f, "{}", serde_json::to_string(self).unwrap())
1347 }
1348}
1349#[derive(Debug, Serialize, Deserialize, Default)]
1350pub struct Errors {
1351 pub errors: Vec<serde_json::Value>,
1352}
1353impl std::fmt::Display for Errors {
1354 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1355 write!(f, "{}", serde_json::to_string(self).unwrap())
1356 }
1357}
1358#[derive(Debug, Serialize, Deserialize, Default)]
1359pub struct WebhooksEventWebhookRequest {
1360 pub delivered: bool,
1362 pub group_unsubscribe: bool,
1364 pub group_resubscribe: bool,
1366 pub deferred: bool,
1368 pub open: bool,
1370 pub processed: bool,
1372 pub oauth_client_id: Option<String>,
1374 pub unsubscribe: bool,
1376 pub bounce: bool,
1378 pub spam_report: bool,
1380 pub oauth_token_url: Option<String>,
1382 pub url: String,
1384 pub dropped: bool,
1386 pub click: bool,
1388 pub enabled: bool,
1390}
1391impl std::fmt::Display for WebhooksEventWebhookRequest {
1392 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1393 write!(f, "{}", serde_json::to_string(self).unwrap())
1394 }
1395}
1396#[derive(Debug, Serialize, Deserialize, Default)]
1397pub struct PatchVerifiedSendersIdRequired {
1398 pub id: String,
1399 pub nickname: String,
1400 pub from_email: String,
1401 pub reply_to: String,
1402}
1403impl std::fmt::Display for PatchVerifiedSendersIdRequired {
1404 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1405 write!(f, "{}", serde_json::to_string(self).unwrap())
1406 }
1407}
1408#[derive(Debug, Serialize, Deserialize)]
1409pub struct SinglesendsResponse {
1410 pub results: Vec<serde_json::Value>,
1411 pub metadata: Metadata,
1412}
1413impl std::fmt::Display for SinglesendsResponse {
1414 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1415 write!(f, "{}", serde_json::to_string(self).unwrap())
1416 }
1417}
1418#[derive(Debug, Serialize, Deserialize, Default)]
1419pub struct CategoryStats {
1420 pub stats: Option<Vec<serde_json::Value>>,
1421 pub date: String,
1423}
1424impl std::fmt::Display for CategoryStats {
1425 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1426 write!(f, "{}", serde_json::to_string(self).unwrap())
1427 }
1428}
1429#[derive(Debug, Serialize, Deserialize)]
1430pub struct SinglesendResponseShort {
1431 pub created_at: String,
1433 pub abtest: Option<AbtestSummary>,
1434 pub id: String,
1435 pub categories: Vec<String>,
1437 pub name: String,
1439 pub is_abtest: bool,
1441 pub updated_at: String,
1443 pub send_at: Option<String>,
1445 pub status: String,
1447}
1448impl std::fmt::Display for SinglesendResponseShort {
1449 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1450 write!(f, "{}", serde_json::to_string(self).unwrap())
1451 }
1452}
1453#[derive(Debug, Serialize, Deserialize, Default)]
1454pub struct PatchSsoIntegrationsIdRequired {
1455 pub name: String,
1456 pub signin_url: String,
1457 pub id: String,
1458 pub signout_url: String,
1459 pub entity_id: String,
1460 pub enabled: bool,
1461}
1462impl std::fmt::Display for PatchSsoIntegrationsIdRequired {
1463 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1464 write!(f, "{}", serde_json::to_string(self).unwrap())
1465 }
1466}
1467#[derive(Debug, Serialize, Deserialize, Default)]
1468pub struct SubscriptionTrackingSettings {
1469 pub plain_content: Option<String>,
1471 pub html_content: Option<String>,
1473 pub replace: Option<String>,
1475 pub landing: Option<String>,
1477 pub enabled: Option<bool>,
1479 pub url: Option<String>,
1481}
1482impl std::fmt::Display for SubscriptionTrackingSettings {
1483 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1484 write!(f, "{}", serde_json::to_string(self).unwrap())
1485 }
1486}
1487#[derive(Debug, Serialize, Deserialize, Default)]
1488pub struct ContactdbRecipientResponse {
1489 pub errors: Option<Vec<serde_json::Value>>,
1490 pub error_count: f64,
1492 pub error_indices: Option<Vec<f64>>,
1494 pub new_count: f64,
1496 pub persisted_recipients: Vec<String>,
1498 pub updated_count: f64,
1500}
1501impl std::fmt::Display for ContactdbRecipientResponse {
1502 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1503 write!(f, "{}", serde_json::to_string(self).unwrap())
1504 }
1505}
1506#[derive(Debug, Serialize, Deserialize, Default)]
1507pub struct SegmentWriteV2 {
1508 pub parent_list_ids: Option<Vec<String>>,
1510 pub query_dsl: String,
1512 pub name: String,
1514}
1515impl std::fmt::Display for SegmentWriteV2 {
1516 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1517 write!(f, "{}", serde_json::to_string(self).unwrap())
1518 }
1519}
1520#[derive(Debug, Serialize, Deserialize)]
1521pub struct SenderIdRequest {
1522 pub city: Option<String>,
1524 pub country: Option<String>,
1526 pub address2: Option<String>,
1528 pub from: Option<serde_json::Value>,
1529 pub state: Option<String>,
1531 pub address: Option<String>,
1533 pub reply_to: Option<serde_json::Value>,
1534 pub zip: Option<String>,
1536 pub nickname: Option<String>,
1538}
1539impl std::fmt::Display for SenderIdRequest {
1540 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1541 write!(f, "{}", serde_json::to_string(self).unwrap())
1542 }
1543}
1544#[derive(Debug, Serialize, Deserialize)]
1545pub struct DesignOutput {
1546 pub design_output_summary: DesignOutputSummary,
1547 pub design_input: DesignInput,
1548}
1549impl std::fmt::Display for DesignOutput {
1550 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1551 write!(f, "{}", serde_json::to_string(self).unwrap())
1552 }
1553}
1554#[derive(Debug, Serialize, Deserialize)]
1555pub struct AdvancedStatsMailboxProvider {
1556 pub delivered: i64,
1558 pub spam_reports: i64,
1560 pub processed: i64,
1562 pub blocks: i64,
1564 pub deferred: i64,
1566 pub requests: i64,
1568 pub advanced_stats_clicks_opens: AdvancedStatsClicksOpens,
1570 pub bounces: i64,
1572 pub drops: i64,
1574}
1575impl std::fmt::Display for AdvancedStatsMailboxProvider {
1576 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1577 write!(f, "{}", serde_json::to_string(self).unwrap())
1578 }
1579}
1580#[derive(Debug, Serialize, Deserialize)]
1581pub struct CampaignResponse {
1582 pub campaign_request: CampaignRequest,
1583 pub status: String,
1585 pub id: i64,
1586}
1587impl std::fmt::Display for CampaignResponse {
1588 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1589 write!(f, "{}", serde_json::to_string(self).unwrap())
1590 }
1591}
1592#[derive(Debug, Serialize, Deserialize)]
1593pub struct FullSegment {
1594 pub query_json: serde_json::Value,
1596 pub segment_summary: SegmentSummary,
1597 pub segment_write_v2: SegmentWriteV2,
1598 pub contacts_sample: Vec<ContactResponse>,
1599}
1600impl std::fmt::Display for FullSegment {
1601 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1602 write!(f, "{}", serde_json::to_string(self).unwrap())
1603 }
1604}
1605#[derive(Debug, Serialize, Deserialize)]
1606pub struct SegmentQueryJson {
1607 pub contacts: Option<serde_json::Value>,
1608}
1609impl std::fmt::Display for SegmentQueryJson {
1610 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1611 write!(f, "{}", serde_json::to_string(self).unwrap())
1612 }
1613}
1614#[derive(Debug, Serialize, Deserialize, Default)]
1615pub struct PostSubusersRequired {
1616 pub password: String,
1617 pub username: String,
1618 pub email: String,
1619 pub ips: Vec<String>,
1620}
1621impl std::fmt::Display for PostSubusersRequired {
1622 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1623 write!(f, "{}", serde_json::to_string(self).unwrap())
1624 }
1625}
1626#[derive(Debug, Serialize, Deserialize, Default)]
1627pub struct Message {
1628 pub events: Vec<serde_json::Value>,
1630 pub from_email: String,
1631 pub template_id: String,
1632 pub unique_args: String,
1634 pub subject: String,
1635 pub originating_ip: String,
1637 pub teammate: String,
1639 pub status: String,
1641 pub api_key_id: String,
1642 pub outbound_ip: String,
1644 pub outbound_ip_type: String,
1646 pub to_email: String,
1647 pub asm_group_id: i64,
1648 pub categories: Vec<String>,
1650 pub msg_id: String,
1651}
1652impl std::fmt::Display for Message {
1653 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1654 write!(f, "{}", serde_json::to_string(self).unwrap())
1655 }
1656}
1657#[derive(Debug, Serialize, Deserialize, Default)]
1658pub struct ContactdbSegmentsConditions {
1659 pub and_or: Option<String>,
1660 pub field: String,
1661 pub value: String,
1662 pub operator: String,
1663}
1664impl std::fmt::Display for ContactdbSegmentsConditions {
1665 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1666 write!(f, "{}", serde_json::to_string(self).unwrap())
1667 }
1668}
1669#[derive(Debug, Serialize, Deserialize)]
1670pub struct Credentials {
1671 pub permissions: Option<serde_json::Value>,
1672 pub username: Option<String>,
1673}
1674impl std::fmt::Display for Credentials {
1675 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1676 write!(f, "{}", serde_json::to_string(self).unwrap())
1677 }
1678}
1679#[derive(Debug, Serialize, Deserialize, Default)]
1680pub struct SegmentStatusResponse {
1681 pub query_validation: String,
1683 pub error_message: Option<String>,
1685}
1686impl std::fmt::Display for SegmentStatusResponse {
1687 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1688 write!(f, "{}", serde_json::to_string(self).unwrap())
1689 }
1690}
1691#[derive(Debug, Serialize, Deserialize)]
1692pub struct GlobalId(pub i64);
1693#[derive(Debug, Serialize, Deserialize)]
1694pub struct ContactDetails2 {
1695 pub postal_code: Option<String>,
1696 pub email: Option<String>,
1697 pub facebook: Option<String>,
1698 pub first_name: Option<String>,
1699 pub unique_name: Option<String>,
1700 pub list_ids: Vec<String>,
1701 pub segment_ids: Option<Vec<String>>,
1702 pub address_line2: Option<String>,
1703 pub country: Option<String>,
1704 pub id: String,
1705 pub whatsapp: Option<String>,
1706 pub address_line1: Option<String>,
1707 pub created_at: String,
1708 pub line: Option<String>,
1709 pub custom_fields: Option<serde_json::Value>,
1710 pub phone_number: Option<String>,
1711 pub alternate_emails: Option<Vec<String>>,
1712 pub last_name: Option<String>,
1713 pub metadata: Option<Selfmetadata>,
1714 pub state_province_region: Option<String>,
1715 pub updated_at: String,
1716 pub city: Option<String>,
1717}
1718impl std::fmt::Display for ContactDetails2 {
1719 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1720 write!(f, "{}", serde_json::to_string(self).unwrap())
1721 }
1722}
1723#[derive(Debug, Serialize, Deserialize, Default)]
1724pub struct ErrorsSegV2 {
1725 pub errors: Vec<serde_json::Value>,
1726}
1727impl std::fmt::Display for ErrorsSegV2 {
1728 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1729 write!(f, "{}", serde_json::to_string(self).unwrap())
1730 }
1731}
1732#[derive(Debug, Serialize, Deserialize)]
1733pub struct SubuserPost {
1734 pub email: String,
1736 pub authorization_token: Option<String>,
1737 pub credit_allocation: Option<serde_json::Value>,
1738 pub user_id: f64,
1740 pub username: String,
1742 pub signup_session_token: Option<String>,
1743}
1744impl std::fmt::Display for SubuserPost {
1745 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1746 write!(f, "{}", serde_json::to_string(self).unwrap())
1747 }
1748}
1749#[derive(Debug, Serialize, Deserialize, Default)]
1750pub struct SinglesendSearch {
1751 pub status: Option<Vec<String>>,
1753 pub name: Option<String>,
1755 pub categories: Option<Vec<String>>,
1757}
1758impl std::fmt::Display for SinglesendSearch {
1759 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1760 write!(f, "{}", serde_json::to_string(self).unwrap())
1761 }
1762}
1763#[derive(Debug, Serialize, Deserialize)]
1764pub struct ContactImport {
1765 pub finished_at: Option<String>,
1767 pub id: Option<String>,
1769 pub started_at: Option<String>,
1771 pub status: Option<String>,
1773 pub job_type: Option<String>,
1775 pub results: Option<serde_json::Value>,
1777}
1778impl std::fmt::Display for ContactImport {
1779 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1780 write!(f, "{}", serde_json::to_string(self).unwrap())
1781 }
1782}
1783#[derive(Debug, Serialize, Deserialize)]
1784pub struct TransactionalTemplate {
1785 pub warning: TransactionalTemplateWarning,
1786 pub transactional_templates_template_lean: TransactionalTemplatesTemplateLean,
1787}
1788impl std::fmt::Display for TransactionalTemplate {
1789 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1790 write!(f, "{}", serde_json::to_string(self).unwrap())
1791 }
1792}
1793#[derive(Debug, Serialize, Deserialize)]
1794pub struct ContactSummary {
1795 pub first_name: Option<String>,
1796 pub email: Option<String>,
1798 pub last_name: Option<String>,
1799 pub updated_at: f64,
1801 pub metadata: Option<Selfmetadata>,
1802 pub list_ids: Vec<String>,
1804 pub id: String,
1806 pub created_at: f64,
1808}
1809impl std::fmt::Display for ContactSummary {
1810 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1811 write!(f, "{}", serde_json::to_string(self).unwrap())
1812 }
1813}
1814#[derive(Debug, Serialize, Deserialize, Default)]
1815pub struct MailSettingsTemplate {
1816 pub enabled: Option<bool>,
1818 pub html_content: Option<String>,
1820}
1821impl std::fmt::Display for MailSettingsTemplate {
1822 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1823 write!(f, "{}", serde_json::to_string(self).unwrap())
1824 }
1825}
1826#[derive(Debug, Serialize, Deserialize, Default)]
1827pub struct MailSettingsPatch {
1828 pub email: Option<String>,
1830 pub enabled: Option<bool>,
1832}
1833impl std::fmt::Display for MailSettingsPatch {
1834 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1835 write!(f, "{}", serde_json::to_string(self).unwrap())
1836 }
1837}
1838#[derive(Debug, Serialize, Deserialize, Default)]
1839pub struct ParseSetting {
1840 pub send_raw: Option<bool>,
1842 pub spam_check: Option<bool>,
1844 pub url: Option<String>,
1846 pub hostname: Option<String>,
1848}
1849impl std::fmt::Display for ParseSetting {
1850 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1851 write!(f, "{}", serde_json::to_string(self).unwrap())
1852 }
1853}
1854#[derive(Debug, Serialize, Deserialize, Default)]
1855pub struct Error {
1856 pub field: Option<String>,
1857 pub error_id: Option<String>,
1858 pub message: String,
1859 pub parameter: Option<String>,
1860}
1861impl std::fmt::Display for Error {
1862 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1863 write!(f, "{}", serde_json::to_string(self).unwrap())
1864 }
1865}
1866#[derive(Debug, Serialize, Deserialize, Default)]
1867pub struct EmailActivityResponseCommonFields {
1868 pub status: Option<String>,
1870 pub to_email: Option<String>,
1872 pub msg_id: Option<String>,
1874 pub from_email: Option<String>,
1876 pub subject: Option<String>,
1878}
1879impl std::fmt::Display for EmailActivityResponseCommonFields {
1880 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1881 write!(f, "{}", serde_json::to_string(self).unwrap())
1882 }
1883}
1884#[derive(Debug, Serialize, Deserialize, Default)]
1885pub struct SegmentWrite {
1886 pub query_dsl: String,
1888 pub name: String,
1889}
1890impl std::fmt::Display for SegmentWrite {
1891 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1892 write!(f, "{}", serde_json::to_string(self).unwrap())
1893 }
1894}
1895#[derive(Debug, Serialize, Deserialize, Default)]
1896pub struct SinglesendSchedule {
1897 pub status: Option<String>,
1898 pub send_at: String,
1900}
1901impl std::fmt::Display for SinglesendSchedule {
1902 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1903 write!(f, "{}", serde_json::to_string(self).unwrap())
1904 }
1905}
1906#[derive(Debug, Serialize, Deserialize, Default)]
1907pub struct AdvancedStatsClicks {
1908 pub unique_clicks: Option<i64>,
1910 pub clicks: Option<i64>,
1912}
1913impl std::fmt::Display for AdvancedStatsClicks {
1914 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1915 write!(f, "{}", serde_json::to_string(self).unwrap())
1916 }
1917}
1918#[derive(Debug, Serialize, Deserialize)]
1919pub struct ContactResponse {
1920 pub email: String,
1922 pub address_line2: String,
1924 pub id: String,
1926 pub segment_ids: Option<Vec<String>>,
1928 pub address_line1: String,
1930 pub custom_fields: serde_json::Value,
1932 pub country: String,
1934 pub first_name: String,
1936 pub list_ids: Option<Vec<String>>,
1938 pub alternate_emails: Vec<String>,
1940 pub state_province_region: String,
1942 pub city: String,
1944 pub postal_code: i64,
1946 pub last_name: String,
1948}
1949impl std::fmt::Display for ContactResponse {
1950 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1951 write!(f, "{}", serde_json::to_string(self).unwrap())
1952 }
1953}
1954#[derive(Debug, Serialize, Deserialize, Default)]
1955pub struct DesignDuplicateInput {
1956 pub editor: Option<String>,
1958 pub name: Option<String>,
1960}
1961impl std::fmt::Display for DesignDuplicateInput {
1962 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1963 write!(f, "{}", serde_json::to_string(self).unwrap())
1964 }
1965}
1966#[derive(Debug, Serialize, Deserialize, Default)]
1967pub struct TransactionalTemplatesTemplateLean {
1968 pub versions: Option<Vec<TransactionalTemplatesVersionOutputLean>>,
1970 pub updated_at: String,
1972 pub generation: String,
1974 pub id: String,
1976 pub name: String,
1978}
1979impl std::fmt::Display for TransactionalTemplatesTemplateLean {
1980 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1981 write!(f, "{}", serde_json::to_string(self).unwrap())
1982 }
1983}
1984#[derive(Debug, Serialize, Deserialize)]
1985pub struct UserScheduledSendStatus {
1986 pub mail_batch_id: MailBatchId,
1987 pub status: String,
1989}
1990impl std::fmt::Display for UserScheduledSendStatus {
1991 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
1992 write!(f, "{}", serde_json::to_string(self).unwrap())
1993 }
1994}
1995#[derive(Debug, Serialize, Deserialize)]
1996pub struct PostSendersRequired {
1997 pub nickname: String,
1998 pub address: String,
1999 pub country: String,
2000 pub from: serde_json::Value,
2001 pub state: String,
2002 pub city: String,
2003 pub reply_to: serde_json::Value,
2004 pub zip: String,
2005 pub address2: String,
2006}
2007impl std::fmt::Display for PostSendersRequired {
2008 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2009 write!(f, "{}", serde_json::to_string(self).unwrap())
2010 }
2011}
2012#[derive(Debug, Serialize, Deserialize, Default)]
2013pub struct PatchTemplatesTemplateIdVersionsVersionIdRequired {
2014 pub name: String,
2015 pub template_id: String,
2016 pub version_id: String,
2017 pub subject: String,
2018}
2019impl std::fmt::Display for PatchTemplatesTemplateIdVersionsVersionIdRequired {
2020 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2021 write!(f, "{}", serde_json::to_string(self).unwrap())
2022 }
2023}
2024#[derive(Debug, Serialize, Deserialize, Default)]
2025pub struct SsoCertificateBody {
2026 pub id: Option<f64>,
2028 pub not_before: Option<f64>,
2030 pub not_after: Option<f64>,
2032 pub public_certificate: Option<String>,
2034 pub intergration_id: Option<String>,
2036}
2037impl std::fmt::Display for SsoCertificateBody {
2038 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2039 write!(f, "{}", serde_json::to_string(self).unwrap())
2040 }
2041}
2042#[derive(Debug, Serialize, Deserialize, Default)]
2043pub struct CcBccEmailObject {
2044 pub email: String,
2046 pub name: Option<String>,
2048}
2049impl std::fmt::Display for CcBccEmailObject {
2050 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2051 write!(f, "{}", serde_json::to_string(self).unwrap())
2052 }
2053}
2054#[derive(Debug, Serialize, Deserialize)]
2055pub struct ContactdbSegmentsWithId {
2056 pub contactdb_segments: ContactdbSegments,
2057 pub id: f64,
2059}
2060impl std::fmt::Display for ContactdbSegmentsWithId {
2061 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2062 write!(f, "{}", serde_json::to_string(self).unwrap())
2063 }
2064}
2065#[derive(Debug, Serialize, Deserialize)]
2066pub struct ContactRequest {
2067 pub custom_fields: Option<CustomFieldsById>,
2068 pub first_name: Option<String>,
2070 pub last_name: Option<String>,
2072 pub postal_code: Option<String>,
2074 pub email: String,
2076 pub city: Option<String>,
2078 pub state_province_region: Option<String>,
2080 pub country: Option<String>,
2082 pub address_line1: Option<String>,
2084 pub address_line2: Option<String>,
2086 pub alternate_emails: Option<Vec<String>>,
2088}
2089impl std::fmt::Display for ContactRequest {
2090 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2091 write!(f, "{}", serde_json::to_string(self).unwrap())
2092 }
2093}
2094#[derive(Debug, Serialize, Deserialize)]
2095pub struct SpamReportsResponse(pub Vec<serde_json::Value>);
2096#[derive(Debug, Serialize, Deserialize, Default)]
2097pub struct SsoTeammateCommonFields {
2098 pub first_name: String,
2100 pub email: String,
2102 pub last_name: String,
2104 pub is_admin: Option<bool>,
2106 pub is_read_only: Option<bool>,
2108}
2109impl std::fmt::Display for SsoTeammateCommonFields {
2110 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2111 write!(f, "{}", serde_json::to_string(self).unwrap())
2112 }
2113}
2114#[derive(Debug, Serialize, Deserialize, Default)]
2115pub struct SuppressionGroup {
2116 pub is_default: Option<bool>,
2118 pub last_email_sent_at: Option<i64>,
2119 pub unsubscribes: Option<i64>,
2121 pub description: String,
2123 pub name: String,
2125 pub id: f64,
2127}
2128impl std::fmt::Display for SuppressionGroup {
2129 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2130 write!(f, "{}", serde_json::to_string(self).unwrap())
2131 }
2132}
2133#[derive(Debug, Serialize, Deserialize)]
2134pub struct Contacts {
2135 pub address: Option<String>,
2136 pub state: Option<String>,
2137 pub city: Option<String>,
2138 pub last_name: Option<String>,
2139 pub first_name: Option<String>,
2140 pub address2: Option<serde_json::Value>,
2141 pub country: Option<String>,
2142 pub email: Option<String>,
2143 pub company: Option<String>,
2144 pub zip: Option<String>,
2145 pub phone: Option<String>,
2146}
2147impl std::fmt::Display for Contacts {
2148 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2149 write!(f, "{}", serde_json::to_string(self).unwrap())
2150 }
2151}
2152#[derive(Debug, Serialize, Deserialize)]
2153pub struct ContactDetails {
2154 pub metadata: Option<Selfmetadata>,
2155 pub updated_at: String,
2157 pub created_at: String,
2159 pub custom_fields: Option<CustomFieldsByName>,
2160 pub state_province_region: Option<String>,
2161 pub alternate_emails: Option<Vec<String>>,
2162 pub email: Option<String>,
2163 pub address_line2: Option<String>,
2164 pub country: Option<String>,
2165 pub first_name: Option<String>,
2166 pub address_line1: Option<String>,
2167 pub last_name: Option<String>,
2168 pub city: Option<String>,
2169 pub id: String,
2170 pub list_ids: Vec<String>,
2171 pub postal_code: Option<String>,
2172}
2173impl std::fmt::Display for ContactDetails {
2174 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2175 write!(f, "{}", serde_json::to_string(self).unwrap())
2176 }
2177}
2178#[derive(Debug, Serialize, Deserialize, Default)]
2179pub struct ApiKeyNameId {
2180 pub name: Option<String>,
2182 pub api_key_id: Option<String>,
2184}
2185impl std::fmt::Display for ApiKeyNameId {
2186 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2187 write!(f, "{}", serde_json::to_string(self).unwrap())
2188 }
2189}
2190#[derive(Debug, Serialize, Deserialize)]
2191pub struct SsoTeammateRequest {
2192 pub sso_teammate_common_fields: SsoTeammateCommonFields,
2193 pub scopes: Vec<String>,
2195}
2196impl std::fmt::Display for SsoTeammateRequest {
2197 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2198 write!(f, "{}", serde_json::to_string(self).unwrap())
2199 }
2200}
2201#[derive(Debug, Serialize, Deserialize, Default)]
2202pub struct GoogleAnalyticsSettings {
2203 pub utm_source: Option<String>,
2205 pub utm_content: Option<String>,
2207 pub enabled: Option<bool>,
2209 pub utm_campaign: Option<String>,
2211 pub utm_medium: Option<String>,
2213 pub utm_term: Option<String>,
2215}
2216impl std::fmt::Display for GoogleAnalyticsSettings {
2217 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2218 write!(f, "{}", serde_json::to_string(self).unwrap())
2219 }
2220}
2221#[derive(Debug, Serialize, Deserialize)]
2222pub struct DomainAuthentication200Response(pub Vec<serde_json::Value>);
2223#[derive(Debug, Serialize, Deserialize)]
2224pub struct StatsAdvancedGlobalStats {
2225 pub deferred: i64,
2227 pub spam_report_drops: i64,
2229 pub unsubscribe_drops: i64,
2231 pub blocks: i64,
2233 pub bounces: i64,
2235 pub bounce_drops: i64,
2237 pub unsubscribes: i64,
2239 pub invalid_emails: i64,
2241 pub requests: i64,
2243 pub spam_reports: i64,
2245 pub processed: i64,
2247 pub advanced_stats_clicks_opens: AdvancedStatsClicksOpens,
2249 pub delivered: i64,
2251}
2252impl std::fmt::Display for StatsAdvancedGlobalStats {
2253 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2254 write!(f, "{}", serde_json::to_string(self).unwrap())
2255 }
2256}
2257#[derive(Debug, Serialize, Deserialize, Default)]
2258pub struct SuppressionGroupRequestBase {
2259 pub description: Option<String>,
2261 pub is_default: Option<bool>,
2263 pub name: Option<String>,
2265}
2266impl std::fmt::Display for SuppressionGroupRequestBase {
2267 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2268 write!(f, "{}", serde_json::to_string(self).unwrap())
2269 }
2270}
2271#[derive(Debug, Serialize, Deserialize, Default)]
2272pub struct CustomFieldsByName {}
2273impl std::fmt::Display for CustomFieldsByName {
2274 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2275 write!(f, "{}", serde_json::to_string(self).unwrap())
2276 }
2277}
2278#[derive(Debug, Serialize, Deserialize)]
2279pub struct DesignOutputSummary {
2280 pub created_at: String,
2282 pub design_common_fields: DesignCommonFields,
2283 pub id: String,
2285 pub updated_at: String,
2287 pub thumbnail_url: String,
2289 pub design_duplicate_input: DesignDuplicateInput,
2290}
2291impl std::fmt::Display for DesignOutputSummary {
2292 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2293 write!(f, "{}", serde_json::to_string(self).unwrap())
2294 }
2295}
2296#[derive(Debug, Serialize, Deserialize, Default)]
2297pub struct EnforcedTlsRequestResponse {
2298 pub require_valid_cert: Option<bool>,
2300 pub version: Option<f64>,
2302 pub require_tls: Option<bool>,
2304}
2305impl std::fmt::Display for EnforcedTlsRequestResponse {
2306 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2307 write!(f, "{}", serde_json::to_string(self).unwrap())
2308 }
2309}
2310#[derive(Debug, Serialize, Deserialize, Default)]
2311pub struct SegmentSummaryV2 {
2312 pub results: Option<Vec<SegmentSummary>>,
2313}
2314impl std::fmt::Display for SegmentSummaryV2 {
2315 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2316 write!(f, "{}", serde_json::to_string(self).unwrap())
2317 }
2318}
2319#[derive(Debug, Serialize, Deserialize, Default)]
2320pub struct LinkTrackingMetadata {
2321 pub prev: Option<String>,
2323 pub count: Option<f64>,
2325 pub self_: Option<String>,
2327 pub next: Option<String>,
2329}
2330impl std::fmt::Display for LinkTrackingMetadata {
2331 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2332 write!(f, "{}", serde_json::to_string(self).unwrap())
2333 }
2334}
2335#[derive(Debug, Serialize, Deserialize, Default)]
2336pub struct MakoEvent {
2337 pub bounce_type: String,
2339 pub attempt_num: Option<i64>,
2341 pub mx_server: String,
2343 pub processed: String,
2345 pub http_user_agent: String,
2347 pub reason: Option<String>,
2349 pub event_name: String,
2351 pub url: String,
2353}
2354impl std::fmt::Display for MakoEvent {
2355 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2356 write!(f, "{}", serde_json::to_string(self).unwrap())
2357 }
2358}
2359#[derive(Debug, Serialize, Deserialize)]
2360pub struct DomainAuthenticationDomainSpf {
2361 pub user_id: i64,
2363 pub custom_spf: bool,
2365 pub domain: String,
2367 pub username: String,
2369 pub ips: Vec<serde_json::Value>,
2371 pub subdomain: Option<String>,
2373 pub dns: serde_json::Value,
2375 pub automatic_security: bool,
2377 pub valid: bool,
2379 pub default: bool,
2381 pub id: i64,
2383 pub legacy: bool,
2385}
2386impl std::fmt::Display for DomainAuthenticationDomainSpf {
2387 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2388 write!(f, "{}", serde_json::to_string(self).unwrap())
2389 }
2390}
2391#[derive(Debug, Serialize, Deserialize, Default)]
2392pub struct BounceResponse {
2393 pub status: Option<String>,
2395 pub email: Option<String>,
2397 pub created: Option<f64>,
2399 pub reason: Option<String>,
2401}
2402impl std::fmt::Display for BounceResponse {
2403 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2404 write!(f, "{}", serde_json::to_string(self).unwrap())
2405 }
2406}
2407#[derive(Debug, Serialize, Deserialize)]
2408pub struct SinglesendResponse {
2409 pub created_at: String,
2411 pub status: String,
2413 pub updated_at: String,
2415 pub warnings: Vec<serde_json::Value>,
2416 pub id: String,
2417 pub singlesend_request: SinglesendRequest,
2418}
2419impl std::fmt::Display for SinglesendResponse {
2420 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2421 write!(f, "{}", serde_json::to_string(self).unwrap())
2422 }
2423}
2424#[derive(Debug, Serialize, Deserialize, Default)]
2425pub struct MailBatchId {
2426 pub batch_id: String,
2427}
2428impl std::fmt::Display for MailBatchId {
2429 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2430 write!(f, "{}", serde_json::to_string(self).unwrap())
2431 }
2432}
2433#[derive(Debug, Serialize, Deserialize, Default)]
2434pub struct CreateIntegrationRequest {
2435 pub entity_id: String,
2437 pub signin_url: String,
2439 pub enabled: bool,
2441 pub name: String,
2443 pub signout_url: String,
2445 pub completed_integration: Option<bool>,
2447}
2448impl std::fmt::Display for CreateIntegrationRequest {
2449 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
2450 write!(f, "{}", serde_json::to_string(self).unwrap())
2451 }
2452}