fn merge_pull_request_by_squash(
        &self,
        input: MergePullRequestBySquashInput,
    ) -> RusotoFuture<MergePullRequestBySquashOutput, MergePullRequestBySquashError> {
        let mut request = SignedRequest::new("POST", "codecommit", &self.region, "/");

        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header(
            "x-amz-target",
            "CodeCommit_20150413.MergePullRequestBySquash",
        );
        let encoded = serde_json::to_string(&input).unwrap();
        request.set_payload(Some(encoded));

        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(response.buffer().from_err().and_then(|response| {
                    proto::json::ResponsePayload::new(&response)
                        .deserialize::<MergePullRequestBySquashOutput, _>()
                }))
            } else {
                Box::new(response.buffer().from_err().and_then(|response| {
                    Err(MergePullRequestBySquashError::from_response(response))
                }))
            }
        })
    }
/// <p>Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the squash merge strategy. If the merge is successful, it closes the pull request.</p>
Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the squash merge strategy. If the merge is successful, it closes the pull request.
Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the squash merge strategy . If the merge is successful it closes the pull request .
fn merge_pull_request_by_squash(
        &self,
        input: MergePullRequestBySquashInput,
    ) -> RusotoFuture<MergePullRequestBySquashOutput, MergePullRequestBySquashError> {
        let mut request = SignedRequest::new("POST", "codecommit", &self.region, "/");
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        request.add_header(
            "x-amz-target",
            "CodeCommit_20150413.MergePullRequestBySquash",
        );
        let encoded = serde_json::to_string(&input).unwrap();
        request.set_payload(Some(encoded));
        self.client.sign_and_dispatch(request, |response| {
            if response.status.is_success() {
                Box::new(response.buffer().from_err().and_then(|response| {
                    proto::json::ResponsePayload::new(&response)
                        .deserialize::<MergePullRequestBySquashOutput, _>()
                }))
            } else {
                Box::new(response.buffer().from_err().and_then(|response| {
                    Err(MergePullRequestBySquashError::from_response(response))
                }))
            }
        })
    }
fn merge_pull_request_by_squash ( & self , input : MergePullRequestBySquashInput , ) -> RusotoFuture < MergePullRequestBySquashOutput , MergePullRequestBySquashError > { let mut request = SignedRequest :: new ( " " , " " , & self . region , " " ) ; request . set_content_type ( " " . to_owned ( ) ) ; request . add_header ( " " , " " , ) ; let encoded = serde_json :: to_string ( & input ) . unwrap ( ) ; request . set_payload ( Some ( encoded ) ) ; self . client . sign_and_dispatch ( request , | response | { if response . status . is_success ( ) { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { proto :: json :: ResponsePayload :: new ( & response ) . deserialize :: < MergePullRequestBySquashOutput , _ > ( ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { Err ( MergePullRequestBySquashError :: from_response ( response ) ) } ) ) } } ) }
<p>Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the squash merge strategy.
<p > Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the squash merge strategy .
&self
input
MergePullRequestBySquashInput
&self
input
MergePullRequestBySquashInput