leetcoderustapi/resources/
beat_stats.rs1use serde::Deserialize;
2
3#[derive(Debug, Deserialize)]
4pub struct ProblemsSolvedBeatsStats {
5 pub difficulty: String,
6 pub percentage: f32,
7}
8
9#[derive(Debug, Deserialize)]
10pub struct AcSubmissionNum {
11 pub difficulty: String,
12 pub count: i32,
13}
14
15#[allow(non_snake_case)]
16#[derive(Debug, Deserialize)]
17pub struct SubmitStatsGlobal {
18 pub acSubmissionNum: Vec<AcSubmissionNum>,
19}
20
21#[allow(non_snake_case)]
22#[derive(Debug, Deserialize)]
23pub struct MatchedUser {
24 pub problemsSolvedBeatsStats: Vec<ProblemsSolvedBeatsStats>,
25 pub submitStatsGlobal: SubmitStatsGlobal,
26}
27
28#[allow(non_snake_case)]
29#[derive(Debug, Deserialize)]
30pub struct Data {
31 pub matchedUser: MatchedUser,
32}
33
34#[derive(Debug, Deserialize)]
35pub struct BeatStats {
36 pub data: Data,
37}