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
#![allow(missing_docs)]
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Events {
pub data: Vec<Event>,
pub count: i64,
pub page: i64,
}
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Event {
#[serde(rename = "type")]
pub type_field: String,
pub title: String,
pub description: String,
pub organizer: String,
pub start_date: String,
pub end_date: String,
pub website: String,
pub email: String,
pub venue: String,
pub address: String,
pub city: String,
pub country: String,
pub screenshot: String,
}
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct EventCountries {
pub data: Vec<Country>,
pub count: i64,
}
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Country {
pub country: Option<String>,
pub code: String,
}
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct EventTypes {
pub data: Vec<String>,
pub count: i64,
}