aws-sdk-ebs 1.97.0

AWS SDK for Amazon Elastic Block Store
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub(crate) fn de_checksum_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-Checksum");
    ::aws_smithy_http::header::one_or_none(headers)
}

pub(crate) fn de_checksum_algorithm_header(
    header_map: &::aws_smithy_runtime_api::http::Headers,
) -> ::std::result::Result<::std::option::Option<crate::types::ChecksumAlgorithm>, ::aws_smithy_http::header::ParseError> {
    let headers = header_map.get_all("x-amz-Checksum-Algorithm");
    ::aws_smithy_http::header::one_or_none(headers)
}