From c9ead5e7d8f67d910a8a7a6589379552d1dfe8f4 Mon Sep 17 00:00:00 2001 From: olesien Date: Mon, 22 Jan 2024 20:09:37 +0100 Subject: [PATCH] Fixed naming conventions --- torn-api/src/torn.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/torn-api/src/torn.rs b/torn-api/src/torn.rs index 05923ef..4398a7e 100644 --- a/torn-api/src/torn.rs +++ b/torn-api/src/torn.rs @@ -231,7 +231,7 @@ pub struct TerritoryWarReport { #[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)] #[non_exhaustive] -pub enum ItemTypes { +pub enum ItemType { Primary, Secondary, Melee, @@ -262,7 +262,7 @@ pub enum ItemTypes { #[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)] #[non_exhaustive] //Missing hand to hand because it is not possible as a weapon -pub enum WeaponTypes { +pub enum WeaponType { Slashing, Rifle, SMG, @@ -286,8 +286,8 @@ pub struct Item<'a> { #[serde(deserialize_with = "de_util::empty_string_is_none")] pub requirement: Option<&'a str>, #[serde(rename = "type")] - pub item_type: ItemTypes, - pub weapon_type: Option, + pub item_type: ItemType, + pub weapon_type: Option, #[serde(deserialize_with = "de_util::zero_is_none")] pub buy_price: Option, #[serde(deserialize_with = "de_util::zero_is_none")]