api enum derives
This commit is contained in:
parent
8b1ec6bf98
commit
4b04371a88
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "torn-api"
|
name = "torn-api"
|
||||||
version = "0.7.3"
|
version = "0.7.4"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.75.0"
|
rust-version = "1.75.0"
|
||||||
authors = ["Pyrit [2111649]"]
|
authors = ["Pyrit [2111649]"]
|
||||||
|
|
|
@ -205,7 +205,7 @@ pub struct TerritoryWarReportWar {
|
||||||
pub result: TerritoryWarOutcome,
|
pub result: TerritoryWarOutcome,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, Deserialize)]
|
#[derive(Debug, Clone, Copy, Deserialize, PartialEq, Eq, Hash)]
|
||||||
#[serde(rename_all = "snake_case")]
|
#[serde(rename_all = "snake_case")]
|
||||||
pub enum TerritoryWarReportRole {
|
pub enum TerritoryWarReportRole {
|
||||||
Aggressor,
|
Aggressor,
|
||||||
|
@ -229,7 +229,7 @@ pub struct TerritoryWarReport {
|
||||||
pub factions: HashMap<i32, TerritoryWarReportFaction>,
|
pub factions: HashMap<i32, TerritoryWarReportFaction>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
|
#[derive(Debug, Clone, Copy, Deserialize, PartialEq, Eq, Hash)]
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
pub enum ItemType {
|
pub enum ItemType {
|
||||||
Primary,
|
Primary,
|
||||||
|
@ -259,7 +259,7 @@ pub enum ItemType {
|
||||||
Virus,
|
Virus,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
|
#[derive(Debug, Clone, Copy, Deserialize, PartialEq, Eq, Hash)]
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
//Missing hand to hand because it is not possible as a weapon
|
//Missing hand to hand because it is not possible as a weapon
|
||||||
pub enum WeaponType {
|
pub enum WeaponType {
|
||||||
|
|
|
@ -41,7 +41,7 @@ pub enum UserSelection {
|
||||||
|
|
||||||
pub type Selection = UserSelection;
|
pub type Selection = UserSelection;
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
|
#[derive(Debug, Clone, Copy, Deserialize, PartialEq, Eq, Hash)]
|
||||||
pub enum Gender {
|
pub enum Gender {
|
||||||
Male,
|
Male,
|
||||||
Female,
|
Female,
|
||||||
|
@ -495,7 +495,7 @@ impl<'de> Deserialize<'de> for Icon {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Deserialize)]
|
#[derive(Debug, Clone, Copy, Deserialize, PartialEq, Eq, Hash)]
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
pub enum Job {
|
pub enum Job {
|
||||||
Director,
|
Director,
|
||||||
|
|
Loading…
Reference in a new issue