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

Make CardType exaustive

This commit is contained in:
Steffo 2022-08-02 10:41:32 +02:00
parent a67856e668
commit 0c86a7f07c
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -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,
}