From a67856e668de62d60b14da2b0c72d4108bfbbe08 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 2 Aug 2022 10:40:05 +0200 Subject: [PATCH] Remove more localized things --- src/data/schema.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/data/schema.rs b/src/data/schema.rs index c81cc95..aef9440 100644 --- a/src/data/schema.rs +++ b/src/data/schema.rs @@ -51,15 +51,13 @@ pub struct Card { /// List of keywords of this card, with their internal names. pub keyword_refs: Vec, - /// Localized spell speed. - pub spell_speed: String, /// [SpellSpeed] of the card. - pub spell_speed_ref: SpellSpeed, + #[serde(rename = "spell_speed_ref")] + pub spell_speed: SpellSpeed, - /// Localized rarity of the card. - pub rarity: String, /// [CardRarity] of the card. - pub rarity_ref: CardRarity, + #[serde(rename = "rarity_ref")] + pub rarity: CardRarity, /// The subtypes the card has, such as `PORO`. pub subtypes: Vec,