1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-22 17:44:22 +00:00

Remove unnecessary rarity aliases

This commit is contained in:
Steffo 2022-08-04 20:48:03 +02:00
parent bd30998ffb
commit 09a55bee68
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -9,20 +9,18 @@ use crate::schema::corebundle::CoreRarity;
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, serde::Serialize, serde::Deserialize)]
pub enum CardRarity {
/// The card has no rarity, as it probably is not collectible.
#[serde(alias = "")]
#[serde(alias = "NONE")]
None,
/// A common card.
#[serde(alias = "COMMON")]
Common,
/// A rare card.
#[serde(alias = "RARE")]
Rare,
/// An epic card.
#[serde(alias = "EPIC")]
Epic,
/// A champion.
#[serde(alias = "CHAMPION")]
Champion,
}