sdk-rust icon indicating copy to clipboard operation
sdk-rust copied to clipboard

Generic type for Event

Open liamwh opened this issue 4 months ago • 1 comments

Hi, I'd like to make my system which uses CloudEvents more type safe, which means that I would like to have an event trait that is implemented by my type so that when I'm matching on that Cloud Event type, I'm not having to match on the type name, which is a string and is loosely typed. Is that something which you guys are open to implementing?

Cheers,

Liam

liamwh avatar Aug 05 '25 11:08 liamwh

Hi @liamwh,

Sorry for my late response, and thank you for the proposal. Sounds interesting. Can you give an example of how you would use this new functionality?

Best, Fabrizio

Lazzaretti avatar Nov 30 '25 08:11 Lazzaretti