From 0c86a7f07caf64ce262cb3edaffd64950fbbe0d3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 2 Aug 2022 10:41:32 +0200 Subject: [PATCH] Make `CardType` exaustive --- src/data/schema.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/data/schema.rs b/src/data/schema.rs index aef9440..b858966 100644 --- a/src/data/schema.rs +++ b/src/data/schema.rs @@ -133,8 +133,7 @@ pub struct Asset { } -/// Possible card types. -#[non_exhaustive] +/// A possible card type. #[derive(serde::Serialize, serde::Deserialize, Clone, Debug)] pub enum CardType { /// A spell. @@ -148,6 +147,10 @@ pub enum CardType { Landmark, /// A trap or boon. Trap, + + /// Unsupported card type. + #[serde(other)] + Unsupported, }