pub fn result_to_response( result: Result<Value, RpcError>, id: Value ) -> Response
Converts a Rust Result to a JSONRPC response object
Result