logoalt Hacker News

bombela • yesterday at 11:52 PM • 0 replies • view on HN

You can use one generic enum with a trait holding the payload type. I posted an example as response to your first comment.