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
use super::*;
#[derive(Deserialize, Clone, Debug)]
pub struct Stats {
pub period_from: String,
pub period_to: String,
pub visitors: Visitors,
pub reach: Reach,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Visitors {
pub views: Integer,
pub visitors: Integer,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Reach {
pub reach: Integer,
pub reach_subscribers: Integer,
pub mobile_reach: Integer,
pub sex: Vec<SpecificStats>,
pub age: Vec<SpecificStats>,
pub sex_age: Vec<SpecificStats>,
pub cities: Vec<CitiesStats>,
pub countries: Vec<CountriesStats>,
}
#[derive(Deserialize, Clone, Debug)]
pub struct SpecificStats {
pub value: String,
pub count: Integer,
}
#[derive(Deserialize, Clone, Debug)]
pub struct CitiesStats {
pub name: String,
pub city_id: String,
pub count: Integer,
}
#[derive(Deserialize, Clone, Debug)]
pub struct CountriesStats {
pub name: String,
pub code: String,
pub country_id: Integer,
pub count: Integer,
}