From fee278e895e34b012268588c210658a292cd5a2d Mon Sep 17 00:00:00 2001 From: TotallyNot <44345987+TotallyNot@users.noreply.github.com> Date: Sun, 19 Nov 2023 12:09:01 +0100 Subject: [PATCH] added faction tag --- torn-api/Cargo.toml | 2 +- torn-api/src/faction.rs | 3 +++ torn-key-pool/Cargo.toml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/torn-api/Cargo.toml b/torn-api/Cargo.toml index 20308b5..881dc5e 100644 --- a/torn-api/Cargo.toml +++ b/torn-api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "torn-api" -version = "0.6.0" +version = "0.6.1" edition = "2021" authors = ["Pyrit [2111649]"] license = "MIT" diff --git a/torn-api/src/faction.rs b/torn-api/src/faction.rs index 2756b5f..dbc37aa 100644 --- a/torn-api/src/faction.rs +++ b/torn-api/src/faction.rs @@ -76,6 +76,9 @@ pub struct Basic<'a> { pub capacity: i16, pub best_chain: i32, + #[serde(deserialize_with = "de_util::empty_string_is_none")] + pub tag_image: Option<&'a str>, + #[serde(borrow)] pub members: BTreeMap>, diff --git a/torn-key-pool/Cargo.toml b/torn-key-pool/Cargo.toml index 53df5d3..3fc246e 100644 --- a/torn-key-pool/Cargo.toml +++ b/torn-key-pool/Cargo.toml @@ -17,7 +17,7 @@ tokio-runtime = [ "dep:tokio", "dep:rand" ] actix-runtime = [ "dep:actix-rt", "dep:rand" ] [dependencies] -torn-api = { path = "../torn-api", default-features = false, version = "0.5.10" } +torn-api = { path = "../torn-api", default-features = false, version = "0.6" } async-trait = "0.1" thiserror = "1"