pub struct CardAttack {
pub name: Option<String>,
pub cost: Option<Vec<String>>,
pub effect: Option<String>,
pub damage: Option<Damage>,
}Expand description
Card attack information
Fields§
§name: Option<String>Name of the attack
cost: Option<Vec<String>>Cost of the attack (energy types)
effect: Option<String>Effect/Description of the attack
damage: Option<Damage>Damage the attack deals (numeric or formula)
Trait Implementations§
Source§impl Clone for CardAttack
impl Clone for CardAttack
Source§fn clone(&self) -> CardAttack
fn clone(&self) -> CardAttack
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CardAttack
impl Debug for CardAttack
Source§impl<'de> Deserialize<'de> for CardAttack
impl<'de> Deserialize<'de> for CardAttack
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 CardAttack
impl RefUnwindSafe for CardAttack
impl Send for CardAttack
impl Sync for CardAttack
impl Unpin for CardAttack
impl UnwindSafe for CardAttack
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