1
Fork 0
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:
Steffo 2022-08-02 10:26:31 +02:00
parent 33f7cf02db
commit 6f79c08662
Signed by: steffo
GPG key ID: 6965406171929D01

View file

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