From 29639a69aad228ca32311d5bd73929e65a558e65 Mon Sep 17 00:00:00 2001 From: TotallyNot <44345987+TotallyNot@users.noreply.github.com> Date: Fri, 11 Aug 2023 17:09:13 +0200 Subject: [PATCH] added faction role to territory war report --- torn-api/Cargo.toml | 2 +- torn-api/src/torn.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/torn-api/Cargo.toml b/torn-api/Cargo.toml index cafe9db..4233995 100644 --- a/torn-api/Cargo.toml +++ b/torn-api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "torn-api" -version = "0.5.23" +version = "0.5.24" edition = "2021" authors = ["Pyrit [2111649]"] license = "MIT" diff --git a/torn-api/src/torn.rs b/torn-api/src/torn.rs index f013f8a..20d6b3b 100644 --- a/torn-api/src/torn.rs +++ b/torn-api/src/torn.rs @@ -198,6 +198,8 @@ pub struct TerritoryWarReportFaction { pub score: i32, pub joins: i32, pub clears: i32, + #[serde(rename = "type")] + pub role: TerritoryWarReportRole, } #[derive(Clone, Debug, Deserialize)]