(id: u64, method: &str, params: Value)
| 192 | } |
| 193 | |
| 194 | fn json_rpc_request(id: u64, method: &str, params: Value) -> String { |
| 195 | json!({ |
| 196 | "jsonrpc": "2.0", |
| 197 | "id": id, |
| 198 | "method": method, |
| 199 | "params": params |
| 200 | }) |
| 201 | .to_string() |
| 202 | } |
| 203 | |
| 204 | pub fn json_rpc_notification(method: &str, params: Value) -> String { |
| 205 | json!({ |