Skip to main content

Message

Derive Macro Message 

Source
#[derive(Message)]
{
    // Attributes available to this derive:
    #[message]
}
Expand description

#[derive(Message)], with the derive feature (kui-native turns it on). The generated code reaches ::kui_native unless told otherwise, so a crate that depends on kui-core alone adds #[message(crate = "kui_core")] to the enum. Derives From<Self> for Value, TryFrom<&Value>, TryFrom<Value> and MessageField for an enum or a struct; see the crate docs.