#[rpc_method]Expand description
Attribute macro: #[rpc_method] or #[rpc_method(name = "...")].
Marks a method as an RPC endpoint. Without name, the function name is used (e.g. demo_set → “demo_set”).
Use with #[rpc_methods] or #[module(name = “x”)] on the impl block for auto-discovery.