pub struct Attack {
pub cost: Vec<String>,
pub name: String,
pub text: String,
pub damage: String,
pub converted_energy_cost: Option<usize>,
}
Fields§
§cost: Vec<String>
The cost of the attack represented by a list of energy types.
name: String
The name of the attack
text: String
The text or description associated with the attack
damage: String
The damage amount of the attack
converted_energy_cost: Option<usize>
The total cost of the attack. For example, if it costs 2 fire energy, the converted energy cost is simply 2.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Attack
impl<'de> Deserialize<'de> for Attack
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Attack
impl RefUnwindSafe for Attack
impl Send for Attack
impl Sync for Attack
impl Unpin for Attack
impl UnwindSafe for Attack
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more