#[derive(JrRequest)]
{
// Attributes available to this derive:
#[request]
}
Expand description
Derive macro for implementing JrRequest and JrMessage traits.
§Attributes
#[request(method = "method_name", response = ResponseType)]#[request(method = "method_name", response = ResponseType, crate = crate)]- for use within sacp
§Example
ⓘ
#[derive(Debug, Clone, Serialize, Deserialize, JrRequest)]
#[request(method = "_hello", response = HelloResponse)]
struct HelloRequest {
name: String,
}