Event, Message & Query: allow dereferencing concrete types to access generic type methods
Implement deref
for concrete derivatives of Event
, Message
and Query
. This allows accessing generic methods such as is_sticky
for events or get_src
for messages and get_structure
for all.
This is also an opportunity to factorize common attributes in generic builders for events and messages.