vlr_scraper/model/
event_matchlist.rs

1use chrono::NaiveDateTime;
2use serde::Serialize;
3
4/// A list of matches belonging to a particular event.
5pub type EventMatchList = Vec<EventMatchListItem>;
6
7/// Summary information for a single match within an event.
8#[derive(Debug, Clone, Serialize)]
9pub struct EventMatchListItem {
10    pub id: u32,
11    pub slug: String,
12    pub href: String,
13    pub date_time: Option<NaiveDateTime>,
14    pub teams: Vec<EventMatchListTeam>,
15    pub tags: Vec<String>,
16    pub event_text: String,
17    pub event_series_text: String,
18}
19
20/// Team info as shown in a match list entry.
21#[derive(Debug, Clone, Serialize)]
22pub struct EventMatchListTeam {
23    pub name: String,
24    pub is_winner: bool,
25    pub score: Option<u8>,
26}