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: compilation.rs
    path of file: ./repos/dhall-mock/src/mock
    
    the code of the file until where you have to start completion: use super::model::Expectation;
use anyhow::{Context, Error};

pub fn compile_configuration(configuration_content: &str) -> Result<Vec<Expectation>, Error> {
    serde_dhall::from_str(configuration_content)
        .parse()
        .context("Error parsing shall configuration")
}

#[cfg(test)]
mod test {
    use super::*;
    use crate::mock::model::{Expectation, HttpMethod, HttpRequest, HttpResponse};
    use std::collections::HashMap;

    #[test]
    fn test_compile_configuration() {
        let data = r###"
            let Mock = ./dhall/Mock/package.dhall

            let expectations = [ { request  = Mock.HttpRequest::{ method  = Some Mock.HttpMethod.GET
    
    
    fn test_compile_configuration() {
        let data = r###"
            let Mock = ./dhall/Mock/package.dhall

            let expectations = [ { request  = Mock.HttpRequest::{ method  = Some Mock.HttpMethod.GET
                                                                , path    = Some "/greet/pwet"
                                                                }
                               , response = Mock.HttpResponse::{ statusCode   = Mock.statusOK
                                                               , body         = Some "Hello, pwet !"
                                                               }
                               }]

            in expectations
        "###;

        let expected = vec![Expectation {
            request: HttpRequest {
                method: Some(HttpMethod::GET),
                path: Some("/greet/pwet".to_string()),
                body: None,
                params: vec![],
                headers: HashMap::new(),
            },
            response: HttpResponse {
                status_code: Some(200),
                status_reason: None,
                body: Some("Hello, pwet !".to_string()),
                headers: HashMap::new(),
            },
        }];

        let actual = compile_configuration(data).unwrap();

        assert_eq!(actual, expected)
    }