pub enum EffectTemplate {
Show 21 variants
Draw {
count: u8,
},
DealDamage {
amount: u8,
cancelable: bool,
},
AddPower {
amount: i32,
duration_turn: bool,
},
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,
},
ChangeController,
CounterBackup {
power: i32,
},
CounterDamageReduce {
amount: u8,
},
CounterDamageCancel,
}Variants§
Draw
DealDamage
AddPower
MoveToHand
MoveToWaitingRoom
MoveToStock
MoveToClock
Heal
RestTarget
StandTarget
StockCharge
MillTop
MoveStageSlot
SwapStageSlots
RandomDiscardFromHand
RandomMill
RevealZoneTop
ChangeController
CounterBackup
CounterDamageReduce
CounterDamageCancel
Trait Implementations§
Source§impl Clone for EffectTemplate
impl Clone for EffectTemplate
Source§fn clone(&self) -> EffectTemplate
fn clone(&self) -> EffectTemplate
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 EffectTemplate
impl Debug for EffectTemplate
Source§impl<'de> Deserialize<'de> for EffectTemplate
impl<'de> Deserialize<'de> for EffectTemplate
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 EffectTemplate
impl Hash for EffectTemplate
Source§impl PartialEq for EffectTemplate
impl PartialEq for EffectTemplate
Source§impl Serialize for EffectTemplate
impl Serialize for EffectTemplate
impl Eq for EffectTemplate
impl StructuralPartialEq for EffectTemplate
Auto Trait Implementations§
impl Freeze for EffectTemplate
impl RefUnwindSafe for EffectTemplate
impl Send for EffectTemplate
impl Sync for EffectTemplate
impl Unpin for EffectTemplate
impl UnwindSafe for EffectTemplate
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