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: query_result.rs
    path of file: ./repos/prisma-engines/query-engine/connector-test-kit-rs/query-tests-setup/src
    
    the code of the file until where you have to start completion: use query_core::constants::custom_types;
use request_handlers::{GQLError, PrismaResponse};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, PartialEq)]
struct SimpleGqlErrorResponse {
    #[serde(skip_serializing_if = "Vec::is_empty")]
    errors: Vec<GQLError>,
}

#[derive(Serialize, Deserialize, Debug, PartialEq)]
struct SimpleGqlResponse {
    #[serde(skip_serializing_if = "SimpleGqlResponse::data_is_empty")]
    #[serde(default)]
    data: serde_json::Value,
    #[serde(skip_serializing_if = "Vec::is_empty")]
    #[serde(default)]
    errors: Vec<GQLError>,
    #[serde(skip_serializing_if = "Option::is_none")]
    #[serde(default)]
    extensions: Option<serde_json::Value>,
}

impl SimpleGqlResponse {
    fn data_is_empty(data: &serde_json::Value) -> bool {
        match data {
            serde_json::Value::Object(o) => o.is_empty(),
            serde_json::Value::Null => true,
            _ => false
    
    fn test_deserializing_successful_batch_response() {
        let response = "{\"batchResult\":[{\"data\":{\"findUniqueTestModelOrThrow\":{\"id\":1}}},{\"data\":{\"findUniqueTestModelOrThrow\":{\"id\":2}}}]}";
        let result: QueryResult = serde_json::from_str(response).unwrap();

        let expected = QueryResult {
            response: Response::Multi(SimpleGqlBatchResponse {
                batch_result: vec![
                    SimpleGqlResponse {
                        data: json!({
                            "findUniqueTestModelOrThrow": {
                                "id": 1,
                            },
                        }),
                        errors: vec![],
                        extensions: None,
                    },
                    SimpleGqlResponse {
                        data: json!({
                            "findUniqueTestModelOrThrow": {
                                "id": 2,
                            },
                        }),
                        errors: vec![],
                        extensions: None,
                    },
                ],
                errors: vec![],
                extensions: None,
            }),
        };
        assert_eq!(result, expected);
    }