mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-23 01:54: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.
|
/// A possible card type.
|
||||||
#[non_exhaustive]
|
|
||||||
#[derive(serde::Serialize, serde::Deserialize, Clone, Debug)]
|
#[derive(serde::Serialize, serde::Deserialize, Clone, Debug)]
|
||||||
pub enum CardType {
|
pub enum CardType {
|
||||||
/// A spell.
|
/// A spell.
|
||||||
|
@ -148,6 +147,10 @@ pub enum CardType {
|
||||||
Landmark,
|
Landmark,
|
||||||
/// A trap or boon.
|
/// A trap or boon.
|
||||||
Trap,
|
Trap,
|
||||||
|
|
||||||
|
/// Unsupported card type.
|
||||||
|
#[serde(other)]
|
||||||
|
Unsupported,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue