pub enum EffectKind {
Show 27 variants
Draw {
count: u8,
},
Damage {
amount: i32,
cancelable: bool,
damage_type: DamageType,
},
AddModifier {
kind: ModifierKind,
magnitude: i32,
duration: ModifierDuration,
},
MoveToHand,
MoveToWaitingRoom,
MoveToStock,
MoveToClock,
Heal,
RestTarget,
StandTarget,
StockCharge {
count: u8,
},
MillTop {
target: TargetSide,
count: u8,
},
MoveStageSlot {
slot: u8,
},
SwapStageSlots,
RandomDiscardFromHand {
target: TargetSide,
count: u8,
},
RandomMill {
target: TargetSide,
count: u8,
},
RevealZoneTop {
target: TargetSide,
zone: TargetZone,
count: u8,
audience: RevealAudience,
},
MoveTriggerCardToHand,
ChangeController {
new_controller: TargetSide,
},
Standby {
target_slot: u8,
},
TreasureStock {
take_stock: bool,
},
ModifyPendingAttackDamage {
delta: i32,
},
TriggerIcon {
icon: TriggerIcon,
},
RevealDeckTop {
count: u8,
audience: RevealAudience,
},
CounterBackup {
power: i32,
},
CounterDamageReduce {
amount: u8,
},
CounterDamageCancel,
}Variants§
Draw
Damage
AddModifier
MoveToHand
MoveToWaitingRoom
MoveToStock
MoveToClock
Heal
RestTarget
StandTarget
StockCharge
MillTop
MoveStageSlot
SwapStageSlots
RandomDiscardFromHand
RandomMill
RevealZoneTop
MoveTriggerCardToHand
ChangeController
Fields
§
new_controller: TargetSideStandby
TreasureStock
ModifyPendingAttackDamage
TriggerIcon
Fields
§
icon: TriggerIconRevealDeckTop
CounterBackup
CounterDamageReduce
CounterDamageCancel
Implementations§
Source§impl EffectKind
impl EffectKind
pub fn expects_target(&self) -> bool
pub fn requires_target_zone(&self, zone: TargetZone) -> bool
Trait Implementations§
Source§impl Clone for EffectKind
impl Clone for EffectKind
Source§fn clone(&self) -> EffectKind
fn clone(&self) -> EffectKind
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 EffectKind
impl Debug for EffectKind
Source§impl<'de> Deserialize<'de> for EffectKind
impl<'de> Deserialize<'de> for EffectKind
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
Source§impl Hash for EffectKind
impl Hash for EffectKind
Auto Trait Implementations§
impl Freeze for EffectKind
impl RefUnwindSafe for EffectKind
impl Send for EffectKind
impl Sync for EffectKind
impl Unpin for EffectKind
impl UnwindSafe for EffectKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more