Skip to main content

TypeKey

Trait TypeKey 

Source
pub trait TypeKey<D> { }
Expand description

A type as apply, command, requires, on and query take it: a name ("ItemAdded", "orders.OrderPlaced") with the data as any D, or a message type’s constant (OrderPlaced), whose data is then that type.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<D> TypeKey<D> for &str

Implementors§

Source§

impl<M: Message> TypeKey<M> for Of<M>