use enum_dispatch::enum_dispatch; #[enum_dispatch(PlayerAgentTrait)] pub enum PlayerAgent { CustomChoiceAgent, LazyAgent, NoneAgent, PuppetAgent, RandomAgent, } #[enum_dispatch] pub trait PlayerAgentTrait { } pub struct CustomChoiceAgent; pub struct LazyAgent; pub struct NoneAgent; pub struct PuppetAgent; pub struct RandomAgent;