From d6f5ce7256d9094be3adb58905f23bcd7106159a Mon Sep 17 00:00:00 2001 From: nicohman Date: Thu, 10 Sep 2020 11:35:18 -0700 Subject: [PATCH] Make downloader URLs optional since deprecation --- Cargo.toml | 2 +- src/gog.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6661261..a88a488 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gog" -version = "0.3.4" +version = "0.4.0" authors = ["nicohman "] repository = "https://git.sr.ht/~nicohman/gogapi-rs" description = "A crate to use the GOG web api" diff --git a/src/gog.rs b/src/gog.rs index 7333280..0c769fa 100644 --- a/src/gog.rs +++ b/src/gog.rs @@ -571,7 +571,7 @@ pub struct WorksOn { #[serde(rename_all = "camelCase")] pub struct Extra { pub manual_url: String, - pub downloader_url: String, + pub downloader_url: Option, pub name: String, #[serde(rename = "type")] pub type_e: String, @@ -598,7 +598,7 @@ pub struct Downloads { #[serde(rename_all = "camelCase")] pub struct Download { pub manual_url: String, - pub downloader_url: String, + pub downloader_url: Option, pub name: String, pub version: Option, pub date: String, -- 2.45.2