fn describe_endpoints(
        &self,
        input: DescribeEndpointsRequest,
    ) -> RusotoFuture<DescribeEndpointsResponse, DescribeEndpointsError> {
        let request_uri = "/2017-08-29/endpoints";

        let mut request = SignedRequest::new("POST", "mediaconvert", &self.region, &request_uri);
        request.set_content_type("application/x-amz-json-1.1".to_owned());

        let encoded = Some(serde_json::to_vec(&input).unwrap());
        request.set_payload(encoded);

        self.client.sign_and_dispatch(request, |response| {
            if response.status.as_u16() == 200 {
                Box::new(response.buffer().from_err().and_then(|response| {
                    let result = proto::json::ResponsePayload::new(&response)
                        .deserialize::<DescribeEndpointsResponse, _>()?;

                    Ok(result)
                }))
            } else {
                Box::new(
                    response
                        .buffer()
                        .from_err()
                        .and_then(|response| Err(DescribeEndpointsError::from_response(response))),
                )
            }
        })
    }
/// <p>Send an request with an empty body to the regional API endpoint to get your account API endpoint.</p>
Send an request with an empty body to the regional API endpoint to get your account API endpoint.
Send an request with an empty body to the regional API endpoint to get your account API endpoint .
fn describe_endpoints(
        &self,
        input: DescribeEndpointsRequest,
    ) -> RusotoFuture<DescribeEndpointsResponse, DescribeEndpointsError> {
        let request_uri = "/2017-08-29/endpoints";
        let mut request = SignedRequest::new("POST", "mediaconvert", &self.region, &request_uri);
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        let encoded = Some(serde_json::to_vec(&input).unwrap());
        request.set_payload(encoded);
        self.client.sign_and_dispatch(request, |response| {
            if response.status.as_u16() == 200 {
                Box::new(response.buffer().from_err().and_then(|response| {
                    let result = proto::json::ResponsePayload::new(&response)
                        .deserialize::<DescribeEndpointsResponse, _>()?;
                    Ok(result)
                }))
            } else {
                Box::new(
                    response
                        .buffer()
                        .from_err()
                        .and_then(|response| Err(DescribeEndpointsError::from_response(response))),
                )
            }
        })
    }
fn describe_endpoints ( & self , input : DescribeEndpointsRequest , ) -> RusotoFuture < DescribeEndpointsResponse , DescribeEndpointsError > { let request_uri = " " ; let mut request = SignedRequest :: new ( " " , " " , & self . region , & request_uri ) ; request . set_content_type ( " " . to_owned ( ) ) ; let encoded = Some ( serde_json :: to_vec ( & input ) . unwrap ( ) ) ; request . set_payload ( encoded ) ; self . client . sign_and_dispatch ( request , | response | { if response . status . as_u16 ( ) == 200 { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { let result = proto :: json :: ResponsePayload :: new ( & response ) . deserialize :: < DescribeEndpointsResponse , _ > ( ) ? ; Ok ( result ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | Err ( DescribeEndpointsError :: from_response ( response ) ) ) , ) } } ) }
<p>Send an request with an empty body to the regional API endpoint to get your account API endpoint.</p>
<p > Send an request with an empty body to the regional API endpoint to get your account API endpoint . < / p >
&self
input
DescribeEndpointsRequest
&self
input
DescribeEndpointsRequest