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
55
56
57
use super::*;
#[derive(Deserialize, Clone, Debug)]
pub struct Match {
pub title: String,
pub title_url: Option<String>,
pub title_counter: Option<Integer>,
#[serde(rename = "match")]
pub match_: MatchInformation,
pub more: Option<String>,
pub more_url: Option<String>,
}
#[derive(Deserialize, Clone, Debug)]
pub struct MatchInformation {
pub state: String,
pub live_url: Option<String>,
pub url: Option<String>,
pub team_a: TeamInformation,
pub team_b: TeamInformation,
pub score: Score,
pub events: Events,
}
#[derive(Deserialize, Clone, Debug)]
pub struct TeamInformation {
pub name: String,
pub descr: String,
pub icon_id: Option<String>,
}
#[derive(Deserialize, Copy, Clone, Debug)]
pub struct Score {
pub team_a: Integer,
pub team_b: Integer,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Events {
pub team_a: Vec<Event>,
pub team_b: Vec<Event>,
}
#[derive(Deserialize, Clone, Debug)]
pub struct Event {
pub event: String,
pub minute: Integer,
}