aws_sdk_ec2/protocol_serde/
shape_delete_dhcp_options.rs1#[allow(clippy::unnecessary_wraps)]
3pub fn de_delete_dhcp_options_http_error(
4 _response_status: u16,
5 _response_headers: &::aws_smithy_runtime_api::http::Headers,
6 _response_body: &[u8],
7) -> std::result::Result<crate::operation::delete_dhcp_options::DeleteDhcpOptionsOutput, crate::operation::delete_dhcp_options::DeleteDhcpOptionsError>
8{
9 #[allow(unused_mut)]
10 let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
11 .map_err(crate::operation::delete_dhcp_options::DeleteDhcpOptionsError::unhandled)?;
12 generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
13 let generic = generic_builder.build();
14 Err(crate::operation::delete_dhcp_options::DeleteDhcpOptionsError::generic(generic))
15}
16
17#[allow(clippy::unnecessary_wraps)]
18pub fn de_delete_dhcp_options_http_response(
19 _response_status: u16,
20 _response_headers: &::aws_smithy_runtime_api::http::Headers,
21 _response_body: &[u8],
22) -> std::result::Result<crate::operation::delete_dhcp_options::DeleteDhcpOptionsOutput, crate::operation::delete_dhcp_options::DeleteDhcpOptionsError>
23{
24 Ok({
25 #[allow(unused_mut)]
26 let mut output = crate::operation::delete_dhcp_options::builders::DeleteDhcpOptionsOutputBuilder::default();
27 output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
28 output.build()
29 })
30}