pub struct CardAbility {
pub trigger: String,
pub effect: String,
pub params: HashMap<String, String>,
}Expand description
An ability on a card that can be triggered
Fields§
§trigger: StringWhat triggers this ability (e.g., “etb”, “on_play”, “on_damage”)
effect: StringWhat effect to execute (e.g., “damage_2”, “draw_1”, “pump_1_1”)
params: HashMap<String, String>Optional parameters for the effect (e.g., amount, target)
Trait Implementations§
Source§impl Clone for CardAbility
impl Clone for CardAbility
Source§fn clone(&self) -> CardAbility
fn clone(&self) -> CardAbility
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 CardAbility
impl Debug for CardAbility
Source§impl<'de> Deserialize<'de> for CardAbility
impl<'de> Deserialize<'de> for CardAbility
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 CardAbility
impl RefUnwindSafe for CardAbility
impl Send for CardAbility
impl Sync for CardAbility
impl Unpin for CardAbility
impl UnwindSafe for CardAbility
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