#[derive(Message)] { // Attributes available to this derive: #[response] }
Derives the Message trait for a struct or enum.
Message
The response type defaults to () and can be overridden with the #[response(Type)] attribute.
()
#[response(Type)]
#[derive(Message)] #[response(String)] struct Greet(String);