(id: u64, method: impl Into<String>)
| 11 | |
| 12 | impl JsonRpcRequest { |
| 13 | pub fn new(id: u64, method: impl Into<String>) -> Self { |
| 14 | Self { |
| 15 | jsonrpc: "2.0".to_string(), |
| 16 | id, |
| 17 | method: method.into(), |
| 18 | params: None, |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | pub fn with_params(mut self, params: serde_json::Value) -> Self { |
| 23 | self.params = Some(params); |
nothing calls this directly
no outgoing calls
no test coverage detected