nprofile1qy2hwumn8ghj7un9d3shjtnyd968gmewwp6kyqpqhg2hvzx6sxxrwkk5a90eskxm9qu00lw26faq8yvdukfv7295uz6sxwmcwl (nprofile…mcwl) I think in general you can't, you'll need methods like
fn as_service(&self) {
match self {
MyThing::A(a) => Service::APrime(a.into()),
...
}
}
etc.
If you don't want to create them on foot, macros make this reasonably easy.