<commit_before>use super::*;

pub struct ExecuteStoredProcedureRequest {
    hyper_client: HyperClient,
    request: RequestBuilder,
    payload: Result<String, serde_json::Error>,
}

impl DocumentRequestExt for ExecuteStoredProcedureRequest {
    fn request(&mut self) -> &mut RequestBuilder {
        &mut self.request
    }
}

impl ExecuteStoredProcedureRequest {
    pub(crate) fn new(
        hyper_client: HyperClient,
        request: RequestBuilder,
        payload: Result<String, serde_json::Error>,
    ) -> ExecuteStoredProcedureRequest {
        ExecuteStoredProcedureRequest {
            hyper_client,
            request,
            payload,
        }
    }

    pub fn execute<R: DeserializeOwned>(self) -> impl Future<Item = ExecuteStoredProcedureResponse<R>, Error = AzureError> {
        trace!("execute_stored_procedure called(request == {:?}", self.request);
        let hc = self.hyper_client;<commit_msg>Add partition key header to stored procedure execution as well<commit_after>use super::*;

pub struct ExecuteStoredProcedureRequest {
    hyper_client: HyperClient,
    request: RequestBuilder,
    payload: Result<String, serde_json::Error>,
}

impl DocumentRequestExt for ExecuteStoredProcedureRequest {
    fn request(&mut self) -> &mut RequestBuilder {
        &mut self.request
    }
}

impl ExecuteStoredProcedureRequest {
    pub(crate) fn new(
        hyper_client: HyperClient,
        request: RequestBuilder,
        payload: Result<String, serde_json::Error>,
    ) -> ExecuteStoredProcedureRequest {
        ExecuteStoredProcedureRequest {
            hyper_client,
            request,
            payload,
        }
    }

    request_bytes_ref!(partition_key, str, HEADER_DOCUMENTDB_PARTITIONKEY);

    pub fn execute<R: DeserializeOwned>(self) -> impl Future<Item = ExecuteStoredProcedureResponse<R>, Error = AzureError> {
        trace!("execute_stored_procedure called(request == {:?}", self.request);
        let hc = self.hyper_client;
{'fraction_non_alphanumeric': 0.09375, 'fraction_numerical': 0.0, 'mean_word_length': 3.3152173913043477, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6191595', 'n_tokens_mistral': 569, 'n_tokens_neox': 557, 'n_words': 121}