mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-22 17:44:22 +00:00
Rename card_code
into code
This commit is contained in:
parent
33f7cf02db
commit
6f79c08662
1 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,7 @@ use std::collections::HashMap;
|
|||
#[derive(serde::Serialize, serde::Deserialize, Clone, Debug)]
|
||||
#[serde(rename_all="camelCase")]
|
||||
pub struct Card {
|
||||
|
||||
/// Codes of other cards associated with this one.
|
||||
///
|
||||
/// To access references to the cards themselves, use [associated_cards].
|
||||
|
@ -42,7 +43,8 @@ pub struct Card {
|
|||
/// Localized name of the card.
|
||||
pub name: String,
|
||||
/// Unique seven-character identifier of the card.
|
||||
pub card_code: String,
|
||||
#[serde(rename = "card_code")]
|
||||
pub code: String,
|
||||
|
||||
/// List of keywords of this card, with their localized names.
|
||||
pub keywords: Vec<String>,
|
||||
|
|
Loading…
Reference in a new issue