riot_api/models/league/lol_match/
timeline_info.rs1use serde::Deserialize;
2use super::{
3 timeline_frame_event::MatchTimelineInfoFrameEvent,
4 timeline_participant::MatchTimelineInfoFrameParticipantFrames,
5};
6
7#[derive(Debug, Deserialize)]
8#[serde(rename_all = "camelCase")]
9pub struct MatchTimelineInfoDto {
10 pub frame_interval: i32,
11 pub frames: Vec<MatchTimelineInfoFrame>,
12 pub game_id: i64,
13 pub participants: Vec<MatchTimelineInfoParticipant>,
14}
15
16#[derive(Debug, Deserialize)]
17#[serde(rename_all = "camelCase")]
18pub struct MatchTimelineInfoFrame {
19 pub events: Vec<MatchTimelineInfoFrameEvent>,
20 pub participant_frames: MatchTimelineInfoFrameParticipantFrames,
21 pub timestamp: i32,
22}
23
24#[derive(Debug, Deserialize)]
25#[serde(rename_all = "camelCase")]
26pub struct MatchTimelinePosition {
27 pub x: i32,
28 pub y: i32,
29}
30
31#[derive(Debug, Deserialize)]
32#[serde(rename_all = "camelCase")]
33pub struct MatchTimelineInfoParticipant {
34 pub participant_id: i32,
35 pub puuid: String,
36}