pokemon_tcg_sdk/card/
attack.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Deserialize, Serialize)]
4pub struct Attack {
5    /// The cost of the attack represented by a list of energy types.
6    pub cost: Vec<String>,
7    /// The name of the attack
8    pub name: String,
9    /// The text or description associated with the attack
10    pub text: String,
11    /// The damage amount of the attack
12    pub damage: String,
13    /// The total cost of the attack. For example, if it costs 2 fire energy, the converted energy cost is simply 2.
14    #[serde(alias = "convertedEnergyCost")]
15    pub converted_energy_cost: Option<usize>,
16}