use enum_dispatch::enum_dispatch; #[enum_dispatch(PhaseEffectTrait)] pub enum PhaseEffect { DeathSwapPhaseStartEffect, DeathSwapPhaseEndEffect, EndPhaseCheckoutEffect, EndRoundEffect, RollPhaseStartEffect, SetBothPlayerPhaseEffect, TurnEndEffect, } #[enum_dispatch] pub trait PhaseEffectTrait {} pub struct DeathSwapPhaseStartEffect; pub struct DeathSwapPhaseEndEffect; pub struct EndPhaseCheckoutEffect; pub struct EndRoundEffect; pub struct RollPhaseStartEffect; pub struct SetBothPlayerPhaseEffect; pub struct TurnEndEffect;