pub(crate) fn de_durable_execution_arn_header(
header_map: &::aws_smithy_runtime_api::http::Headers,
) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> {
let headers = header_map.get_all("X-Amz-Durable-Execution-Arn");
::aws_smithy_http::header::one_or_none(headers)
}
pub(crate) fn de_executed_version_header(
header_map: &::aws_smithy_runtime_api::http::Headers,
) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> {
let headers = header_map.get_all("X-Amz-Executed-Version");
::aws_smithy_http::header::one_or_none(headers)
}
pub(crate) fn de_function_error_header(
header_map: &::aws_smithy_runtime_api::http::Headers,
) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> {
let headers = header_map.get_all("X-Amz-Function-Error");
::aws_smithy_http::header::one_or_none(headers)
}
pub(crate) fn de_log_result_header(
header_map: &::aws_smithy_runtime_api::http::Headers,
) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> {
let headers = header_map.get_all("X-Amz-Log-Result");
::aws_smithy_http::header::one_or_none(headers)
}
pub(crate) fn de_payload_payload(
body: &[u8],
) -> std::result::Result<::std::option::Option<::aws_smithy_types::Blob>, crate::operation::invoke::InvokeError> {
(!body.is_empty()).then(|| Ok(::aws_smithy_types::Blob::new(body))).transpose()
}