vlr_scraper/model/
common.rs

1use serde::Serialize;
2
3/// A social media link from a profile.
4#[derive(Debug, Clone, Serialize)]
5pub struct Social {
6    pub platform: String,
7    pub url: String,
8    pub display_text: String,
9}
10
11/// A placement history at a single event.
12#[derive(Debug, Clone, Serialize)]
13pub struct EventPlacement {
14    pub event_id: u32,
15    pub event_slug: String,
16    pub event_href: String,
17    pub event_name: String,
18    pub placements: Vec<PlacementEntry>,
19    pub year: String,
20}
21
22/// A single placement entry within an event (stage + result).
23#[derive(Debug, Clone, Serialize)]
24pub struct PlacementEntry {
25    pub stage: String,
26    pub placement: String,
27    pub prize: Option<String>,
28    pub team_name: Option<String>,
29}