sendinblue_v3/models/get_reports_reports_inner.rs
1/*
2 * SendinBlue API
3 *
4 * SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
5 *
6 * The version of the OpenAPI document: 3.0.0
7 * Contact: contact@sendinblue.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct GetReportsReportsInner {
16 /// Date of the statistics
17 #[serde(rename = "date")]
18 pub date: String,
19 /// Number of requests for the date
20 #[serde(rename = "requests")]
21 pub requests: i64,
22 /// Number of delivered emails for the date
23 #[serde(rename = "delivered")]
24 pub delivered: i64,
25 /// Number of hardbounces for the date
26 #[serde(rename = "hardBounces")]
27 pub hard_bounces: i64,
28 /// Number of softbounces for the date
29 #[serde(rename = "softBounces")]
30 pub soft_bounces: i64,
31 /// Number of clicks for the date
32 #[serde(rename = "clicks")]
33 pub clicks: i64,
34 /// Number of unique clicks for the date
35 #[serde(rename = "uniqueClicks")]
36 pub unique_clicks: i64,
37 /// Number of openings for the date
38 #[serde(rename = "opens")]
39 pub opens: i64,
40 /// Number of unique openings for the date
41 #[serde(rename = "uniqueOpens")]
42 pub unique_opens: i64,
43 /// Number of complaints (spam reports) for the date
44 #[serde(rename = "spamReports")]
45 pub spam_reports: i64,
46 /// Number of blocked emails for the date
47 #[serde(rename = "blocked")]
48 pub blocked: i64,
49 /// Number of invalid emails for the date
50 #[serde(rename = "invalid")]
51 pub invalid: i64,
52 /// Number of unsubscribed emails for the date
53 #[serde(rename = "unsubscribed")]
54 pub unsubscribed: i64,
55}
56
57impl GetReportsReportsInner {
58 pub fn new(date: String, requests: i64, delivered: i64, hard_bounces: i64, soft_bounces: i64, clicks: i64, unique_clicks: i64, opens: i64, unique_opens: i64, spam_reports: i64, blocked: i64, invalid: i64, unsubscribed: i64) -> GetReportsReportsInner {
59 GetReportsReportsInner {
60 date,
61 requests,
62 delivered,
63 hard_bounces,
64 soft_bounces,
65 clicks,
66 unique_clicks,
67 opens,
68 unique_opens,
69 spam_reports,
70 blocked,
71 invalid,
72 unsubscribed,
73 }
74 }
75}
76
77