You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: response.rs
    path of file: ./repos/diem/json-rpc/types/src
    
    the code of the file until where you have to start completion: // Copyright (c) The Diem Core Contributors
// SPDX-License-Identifier: Apache-2.0

use crate::errors::JsonRpcError;
use serde::{Deserialize, Serialize};

// http response header names
pub const X_DIEM_CHAIN_ID: &str 
    
    fn test_new() {
        let resp = JsonRpcResponse::new(ChainId::test(), 1, 2);
        assert_eq!(resp.jsonrpc, "2.0");
        assert_eq!(resp.diem_chain_id, 4);
        assert_eq!(resp.diem_ledger_version, 1);
        assert_eq!(resp.diem_ledger_timestampusec, 2);
        assert!(resp.id.is_none());
        assert!(resp.result.is_none());
        assert!(resp.error.is_none());
    }