(id: u64, method: impl Into<String>, params: Option<Value>)
| 21 | |
| 22 | impl RpcRequest { |
| 23 | pub fn new(id: u64, method: impl Into<String>, params: Option<Value>) -> Self { |
| 24 | Self { |
| 25 | jsonrpc: "2.0", |
| 26 | id, |
| 27 | method: method.into(), |
| 28 | params, |
| 29 | } |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | #[derive(Debug, Deserialize)] |
nothing calls this directly
no outgoing calls
no test coverage detected