JrNotification

Derive Macro JrNotification 

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

Derive macro for implementing JrNotification and JrMessage traits.

§Attributes

  • #[notification(method = "method_name")]
  • #[notification(method = "method_name", crate = crate)] - for use within sacp

§Example

#[derive(Debug, Clone, Serialize, Deserialize, JrNotification)]
#[notification(method = "_ping")]
struct PingNotification {
    timestamp: u64,
}