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:
parent
a67856e668
commit
0c86a7f07c
1 changed files with 5 additions and 2 deletions
|
@ -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,
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue