mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-23 01:54: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)]
|
#[derive(serde::Serialize, serde::Deserialize, Clone, Debug)]
|
||||||
#[serde(rename_all="camelCase")]
|
#[serde(rename_all="camelCase")]
|
||||||
pub struct Card {
|
pub struct Card {
|
||||||
|
|
||||||
/// Codes of other cards associated with this one.
|
/// Codes of other cards associated with this one.
|
||||||
///
|
///
|
||||||
/// To access references to the cards themselves, use [associated_cards].
|
/// To access references to the cards themselves, use [associated_cards].
|
||||||
|
@ -42,7 +43,8 @@ pub struct Card {
|
||||||
/// Localized name of the card.
|
/// Localized name of the card.
|
||||||
pub name: String,
|
pub name: String,
|
||||||
/// Unique seven-character identifier of the card.
|
/// 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.
|
/// List of keywords of this card, with their localized names.
|
||||||
pub keywords: Vec<String>,
|
pub keywords: Vec<String>,
|
||||||
|
|
Loading…
Reference in a new issue