1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* enbbox API
*
* Notification infrastructure API — open-source alternative to Novu/Courier
*
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// ActivityChartPoint : A single data point in the activity timeline chart.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ActivityChartPoint {
/// Chat notification count.
#[serde(rename = "chat")]
pub chat: i64,
/// Date string (YYYY-MM-DD).
#[serde(rename = "date")]
pub date: String,
/// Email channel count.
#[serde(rename = "email")]
pub email: i64,
/// In-app notification count.
#[serde(rename = "in_app")]
pub in_app: i64,
/// Push notification count.
#[serde(rename = "push")]
pub push: i64,
/// SMS channel count.
#[serde(rename = "sms")]
pub sms: i64,
/// Total notifications on this date.
#[serde(rename = "total")]
pub total: i64,
}
impl ActivityChartPoint {
/// A single data point in the activity timeline chart.
pub fn new(chat: i64, date: String, email: i64, in_app: i64, push: i64, sms: i64, total: i64) -> ActivityChartPoint {
ActivityChartPoint {
chat,
date,
email,
in_app,
push,
sms,
total,
}
}
}