pub fn to_json<M: RpcMethod>(method: &M) -> Result<Value, Error>
Expand description

Converts an RPC Method into JSON.