raui_derive

Derive Macro MessageData

source
#[derive(MessageData)]
{
    // Attributes available to this derive:
    #[remote]
    #[message_data]
}
Expand description

Derive macro for the [MessageData][raui_core::messenger::MessageData] trait

§Example

#[derive(MessageData, Debug, Clone)]
pub enum AppMessage {
    ShowPopup(usize),
    ClosePopup,
}