aws_sdk_s3/protocol_serde/
shape_get_object_torrent_output.rspub fn de_body_payload(
body: &mut ::aws_smithy_types::body::SdkBody,
) -> std::result::Result<::aws_smithy_types::byte_stream::ByteStream, crate::operation::get_object_torrent::GetObjectTorrentError> {
let body = std::mem::replace(body, ::aws_smithy_types::body::SdkBody::taken());
Ok(::aws_smithy_types::byte_stream::ByteStream::new(body))
}
pub(crate) fn de_request_charged_header(
header_map: &::aws_smithy_runtime_api::http::Headers,
) -> ::std::result::Result<::std::option::Option<crate::types::RequestCharged>, ::aws_smithy_http::header::ParseError> {
let headers = header_map.get_all("x-amz-request-charged");
::aws_smithy_http::header::one_or_none(headers)
}