diff --git a/src/cgg_data_source.rs b/src/cgg_data_source.rs index 7c1a6ad..ce4f664 100644 --- a/src/cgg_data_source.rs +++ b/src/cgg_data_source.rs @@ -9,18 +9,18 @@ use crate::data_source::{DataSource, Stat}; use crate::ChampInfo; use crate::Champion; -#[derive(Deserialize, Debug)] +#[derive(Deserialize)] struct BuildResponse { lol: Lol, } -#[derive(Deserialize, Debug)] +#[derive(Deserialize)] struct Lol { #[serde(rename = "championsReport")] champions_report: Vec, } -#[derive(Deserialize, Debug)] +#[derive(Deserialize)] struct ChampionReport { champion_id: u32, role: String, @@ -28,7 +28,7 @@ struct ChampionReport { stats: Stats, } -#[derive(Deserialize, Debug)] +#[derive(Deserialize)] struct Stats { starting_items: Build, core_builds: Build, @@ -45,7 +45,7 @@ struct Stats { assists: u32, } -#[derive(Deserialize, Debug)] +#[derive(Deserialize)] struct Build { build: Vec, win_rate: f64, diff --git a/src/kb_data_source.rs b/src/kb_data_source.rs index c658366..f97234a 100644 --- a/src/kb_data_source.rs +++ b/src/kb_data_source.rs @@ -12,31 +12,31 @@ pub struct KBDataSource { token: Option, } -#[derive(Deserialize, Debug)] +#[derive(Deserialize)] struct ChampionResponse { - patches: Vec, + //patches: Vec, champions: Vec, } -#[derive(Deserialize, Debug)] +#[derive(Deserialize)] struct Patch { - enabled: bool, + //enabled: bool, #[serde(rename = "patchVersion")] patch_version: String, - patchid: u32, - start: String, + //patchid: u32, + //start: String, } -#[derive(Deserialize, Debug)] +#[derive(Deserialize)] struct Champion { id: u32, - name: String, - #[serde(rename = "className")] - classname: String, + //name: String, + //#[serde(rename = "className")] + //classname: String, builds: Option, } -#[derive(Deserialize, Debug)] +#[derive(Deserialize)] struct Position { bot: u16, jungle: u16, @@ -45,12 +45,12 @@ struct Position { top: u16, } -#[derive(Deserialize, Debug)] +#[derive(Deserialize)] struct BuildResponse { builds2: Vec, } -#[derive(Deserialize, Debug)] +#[derive(Deserialize)] struct KBBuild { position: String, item0: KBItem, @@ -80,14 +80,14 @@ struct KBBuild { patch: Patch, } -#[derive(Deserialize, Debug)] +#[derive(Deserialize)] struct KBItem { #[serde(rename = "itemId")] item_id: u32, - name: String, + //name: String, } -#[derive(Deserialize, Debug)] +#[derive(Deserialize)] struct Summoner { name: String, } diff --git a/src/pb_data_source.rs b/src/pb_data_source.rs index b42ba53..ccc04d0 100644 --- a/src/pb_data_source.rs +++ b/src/pb_data_source.rs @@ -8,12 +8,12 @@ use crate::Champion as ChampionLoL; pub struct PBDataSource; -#[derive(Deserialize, Debug)] +#[derive(Deserialize)] struct ChampionResponse { champions: Vec, } -#[derive(Deserialize, Debug)] +#[derive(Deserialize)] struct Champion { key: Option, }