From 0259aa70e7513c0683bcb93ee12ee3d81deb2767 Mon Sep 17 00:00:00 2001 From: kageru Date: Sat, 17 Aug 2024 20:16:11 +0200 Subject: [PATCH] rename banned to forbidden is this a breaking change? not breaking enough to push api V8, I guess --- src/data.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/data.rs b/src/data.rs index 9c7f265..7f915c7 100644 --- a/src/data.rs +++ b/src/data.rs @@ -44,7 +44,7 @@ pub struct BanlistInfo { #[derive(Debug, Deserialize, PartialEq, Eq, Clone, Copy, Default)] pub enum BanlistStatus { - Banned = 0, + Forbidden = 0, Limited = 1, #[serde(rename = "Semi-Limited")] SemiLimited = 2, @@ -137,7 +137,7 @@ impl Display for Card { r#"

{} {}

"#, &self.name, match self.banlist_info.map(|bi| bi.ban_tcg) { - Some(BanlistStatus::Banned) => format!(r#""#, IMG_HOST.as_str()), + Some(BanlistStatus::Forbidden) => format!(r#""#, IMG_HOST.as_str()), Some(BanlistStatus::Limited) => format!(r#""#, IMG_HOST.as_str()), Some(BanlistStatus::SemiLimited) => format!(r#""#, IMG_HOST.as_str()),