dtz_rss2email/models/
feed_statistics.rs

1/*
2 * DTZ RSS2Email Api
3 *
4 * a generated client for the DTZ RSS2Email API
5 *
6 * Contact: jens@apimeister.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10#[allow(unused_imports)]
11use crate::models;
12#[allow(unused_imports)]
13use serde::{Deserialize, Serialize};
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FeedStatistics {
17    #[serde(rename = "amountOfFeeds")]
18    pub amount_of_feeds: i64,
19    #[serde(rename = "amountOfNotificationDay")]
20    pub amount_of_notification_day: i64,
21    #[serde(rename = "amountOfNotificationWeek")]
22    pub amount_of_notification_week: i64,
23    #[serde(rename = "amountOfNotificationMonth")]
24    pub amount_of_notification_month: i64,
25}
26
27impl FeedStatistics {
28    pub fn new(amount_of_feeds: i64, amount_of_notification_day: i64, amount_of_notification_week: i64, amount_of_notification_month: i64) -> FeedStatistics {
29        FeedStatistics {
30            amount_of_feeds,
31            amount_of_notification_day,
32            amount_of_notification_week,
33            amount_of_notification_month,
34        }
35    }
36}
37