AWS SDK

AWS SDK

rev. dc1b11a614d928cff165eac12e20d37ae979d6cc

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_object_torrent.rs

@@ -1,1 +73,66 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_get_object_torrent_http_response(
    4         -
    response: &mut ::aws_smithy_runtime_api::http::Response,
           3  +
pub fn de_get_object_torrent_http_error(
           4  +
    _response_status: u16,
           5  +
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
           6  +
    _response_body: &[u8],
    5      7   
) -> std::result::Result<crate::operation::get_object_torrent::GetObjectTorrentOutput, crate::operation::get_object_torrent::GetObjectTorrentError> {
    6         -
    let mut _response_body = ::aws_smithy_types::body::SdkBody::taken();
    7         -
    std::mem::swap(&mut _response_body, response.body_mut());
    8         -
    let _response_body = &mut _response_body;
           8  +
    #[allow(unused_mut)]
           9  +
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
          10  +
        .map_err(crate::operation::get_object_torrent::GetObjectTorrentError::unhandled)?;
          11  +
    generic_builder = crate::s3_request_id::apply_extended_request_id(generic_builder, _response_headers);
          12  +
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
          13  +
    let generic = generic_builder.build();
          14  +
    Err(crate::operation::get_object_torrent::GetObjectTorrentError::generic(generic))
          15  +
}
    9     16   
   10         -
    let _response_status = response.status().as_u16();
   11         -
    let _response_headers = response.headers();
          17  +
#[allow(clippy::unnecessary_wraps)]
          18  +
pub fn de_get_object_torrent_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::get_object_torrent::GetObjectTorrentOutput, crate::operation::get_object_torrent::GetObjectTorrentError> {
   12     23   
    Ok({
   13     24   
        #[allow(unused_mut)]
   14     25   
        let mut output = crate::operation::get_object_torrent::builders::GetObjectTorrentOutputBuilder::default();
   15         -
        output = output.set_body(Some(crate::protocol_serde::shape_get_object_torrent_output::de_body_payload(
   16         -
            _response_body,
   17         -
        )?));
   18     26   
        output = output.set_request_charged(
   19     27   
            crate::protocol_serde::shape_get_object_torrent_output::de_request_charged_header(_response_headers).map_err(|_| {
   20     28   
                crate::operation::get_object_torrent::GetObjectTorrentError::unhandled(
   21     29   
                    "Failed to parse RequestCharged from header `x-amz-request-charged",
   22     30   
                )
   23     31   
            })?,
   24     32   
        );
   25     33   
        output._set_extended_request_id(crate::s3_request_id::RequestIdExt::extended_request_id(_response_headers).map(str::to_string));
   26     34   
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   27     35   
        output.build()
   28     36   
    })
   29     37   
}
   30     38   
   31         -
#[allow(clippy::unnecessary_wraps)]
   32         -
pub fn de_get_object_torrent_http_error(
   33         -
    _response_status: u16,
   34         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   35         -
    _response_body: &[u8],
   36         -
) -> std::result::Result<crate::operation::get_object_torrent::GetObjectTorrentOutput, crate::operation::get_object_torrent::GetObjectTorrentError> {
   37         -
    #[allow(unused_mut)]
   38         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
   39         -
        .map_err(crate::operation::get_object_torrent::GetObjectTorrentError::unhandled)?;
   40         -
    generic_builder = crate::s3_request_id::apply_extended_request_id(generic_builder, _response_headers);
   41         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   42         -
    let generic = generic_builder.build();
   43         -
    Err(crate::operation::get_object_torrent::GetObjectTorrentError::generic(generic))
   44         -
}
   45         -
   46     39   
pub fn ser_get_object_torrent_headers(
   47     40   
    input: &crate::operation::get_object_torrent::GetObjectTorrentInput,
   48     41   
    mut builder: ::http::request::Builder,
   49     42   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   50     43   
    if let ::std::option::Option::Some(inner_1) = &input.request_payer {
   51     44   
        let formatted_2 = inner_1.as_str();
   52     45   
        let header_value = formatted_2;
   53     46   
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   54     47   
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   55     48   
                "request_payer",

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_object_torrent_output.rs

@@ -1,1 +15,7 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn de_body_payload(
    3         -
    body: &mut ::aws_smithy_types::body::SdkBody,
    4         -
) -> std::result::Result<::aws_smithy_types::byte_stream::ByteStream, crate::operation::get_object_torrent::GetObjectTorrentError> {
    5         -
    // replace the body with an empty body
    6         -
    let body = std::mem::replace(body, ::aws_smithy_types::body::SdkBody::taken());
    7         -
    Ok(::aws_smithy_types::byte_stream::ByteStream::new(body))
    8         -
}
    9         -
   10      2   
pub(crate) fn de_request_charged_header(
   11      3   
    header_map: &::aws_smithy_runtime_api::http::Headers,
   12      4   
) -> ::std::result::Result<::std::option::Option<crate::types::RequestCharged>, ::aws_smithy_http::header::ParseError> {
   13      5   
    let headers = header_map.get_all("x-amz-request-charged");
   14      6   
    ::aws_smithy_http::header::one_or_none(headers)
   15      7   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_head_bucket.rs

@@ -24,24 +87,83 @@
   44     44   
    _response_body: &[u8],
   45     45   
) -> std::result::Result<crate::operation::head_bucket::HeadBucketOutput, crate::operation::head_bucket::HeadBucketError> {
   46     46   
    Ok({
   47     47   
        #[allow(unused_mut)]
   48     48   
        let mut output = crate::operation::head_bucket::builders::HeadBucketOutputBuilder::default();
   49     49   
        output = output.set_access_point_alias(
   50     50   
            crate::protocol_serde::shape_head_bucket_output::de_access_point_alias_header(_response_headers).map_err(|_| {
   51     51   
                crate::operation::head_bucket::HeadBucketError::unhandled("Failed to parse AccessPointAlias from header `x-amz-access-point-alias")
   52     52   
            })?,
   53     53   
        );
   54         -
        output = output.set_bucket_arn(
   55         -
            crate::protocol_serde::shape_head_bucket_output::de_bucket_arn_header(_response_headers)
   56         -
                .map_err(|_| crate::operation::head_bucket::HeadBucketError::unhandled("Failed to parse BucketArn from header `x-amz-bucket-arn"))?,
   57         -
        );
   58     54   
        output = output.set_bucket_location_name(
   59     55   
            crate::protocol_serde::shape_head_bucket_output::de_bucket_location_name_header(_response_headers).map_err(|_| {
   60     56   
                crate::operation::head_bucket::HeadBucketError::unhandled(
   61     57   
                    "Failed to parse BucketLocationName from header `x-amz-bucket-location-name",
   62     58   
                )
   63     59   
            })?,
   64     60   
        );
   65     61   
        output = output.set_bucket_location_type(
   66     62   
            crate::protocol_serde::shape_head_bucket_output::de_bucket_location_type_header(_response_headers).map_err(|_| {
   67     63   
                crate::operation::head_bucket::HeadBucketError::unhandled(

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_head_bucket_output.rs

@@ -1,1 +44,37 @@
    8      8   
        Err(::aws_smithy_http::header::ParseError::new(format!(
    9      9   
            "expected one item but found {}",
   10     10   
            var_1.len()
   11     11   
        )))
   12     12   
    } else {
   13     13   
        let mut var_1 = var_1;
   14     14   
        Ok(var_1.pop())
   15     15   
    }
   16     16   
}
   17     17   
   18         -
pub(crate) fn de_bucket_arn_header(
   19         -
    header_map: &::aws_smithy_runtime_api::http::Headers,
   20         -
) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> {
   21         -
    let headers = header_map.get_all("x-amz-bucket-arn");
   22         -
    ::aws_smithy_http::header::one_or_none(headers)
   23         -
}
   24         -
   25     18   
pub(crate) fn de_bucket_location_name_header(
   26     19   
    header_map: &::aws_smithy_runtime_api::http::Headers,
   27     20   
) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> {
   28     21   
    let headers = header_map.get_all("x-amz-bucket-location-name");
   29     22   
    ::aws_smithy_http::header::one_or_none(headers)
   30     23   
}
   31     24   
   32     25   
pub(crate) fn de_bucket_location_type_header(
   33     26   
    header_map: &::aws_smithy_runtime_api::http::Headers,
   34     27   
) -> ::std::result::Result<::std::option::Option<crate::types::LocationType>, ::aws_smithy_http::header::ParseError> {

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_head_object.rs

@@ -202,202 +266,261 @@
  222    222   
                crate::operation::head_object::HeadObjectError::unhandled(
  223    223   
                    "Failed to parse ServerSideEncryption from header `x-amz-server-side-encryption",
  224    224   
                )
  225    225   
            })?,
  226    226   
        );
  227    227   
        output = output.set_storage_class(
  228    228   
            crate::protocol_serde::shape_head_object_output::de_storage_class_header(_response_headers).map_err(|_| {
  229    229   
                crate::operation::head_object::HeadObjectError::unhandled("Failed to parse StorageClass from header `x-amz-storage-class")
  230    230   
            })?,
  231    231   
        );
  232         -
        output = output.set_tag_count(
  233         -
            crate::protocol_serde::shape_head_object_output::de_tag_count_header(_response_headers).map_err(|_| {
  234         -
                crate::operation::head_object::HeadObjectError::unhandled("Failed to parse TagCount from header `x-amz-tagging-count")
  235         -
            })?,
  236         -
        );
  237    232   
        output = output.set_version_id(
  238    233   
            crate::protocol_serde::shape_head_object_output::de_version_id_header(_response_headers)
  239    234   
                .map_err(|_| crate::operation::head_object::HeadObjectError::unhandled("Failed to parse VersionId from header `x-amz-version-id"))?,
  240    235   
        );
  241    236   
        output = output.set_website_redirect_location(
  242    237   
            crate::protocol_serde::shape_head_object_output::de_website_redirect_location_header(_response_headers).map_err(|_| {
  243    238   
                crate::operation::head_object::HeadObjectError::unhandled(
  244    239   
                    "Failed to parse WebsiteRedirectLocation from header `x-amz-website-redirect-location",
  245    240   
                )
  246    241   
            })?,

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_head_object_output.rs

@@ -306,306 +370,354 @@
  326    326   
    ::aws_smithy_http::header::one_or_none(headers)
  327    327   
}
  328    328   
  329    329   
pub(crate) fn de_storage_class_header(
  330    330   
    header_map: &::aws_smithy_runtime_api::http::Headers,
  331    331   
) -> ::std::result::Result<::std::option::Option<crate::types::StorageClass>, ::aws_smithy_http::header::ParseError> {
  332    332   
    let headers = header_map.get_all("x-amz-storage-class");
  333    333   
    ::aws_smithy_http::header::one_or_none(headers)
  334    334   
}
  335    335   
  336         -
pub(crate) fn de_tag_count_header(
  337         -
    header_map: &::aws_smithy_runtime_api::http::Headers,
  338         -
) -> ::std::result::Result<::std::option::Option<i32>, ::aws_smithy_http::header::ParseError> {
  339         -
    let headers = header_map.get_all("x-amz-tagging-count");
  340         -
    let var_9 = ::aws_smithy_http::header::read_many_primitive::<i32>(headers)?;
  341         -
    if var_9.len() > 1 {
  342         -
        Err(::aws_smithy_http::header::ParseError::new(format!(
  343         -
            "expected one item but found {}",
  344         -
            var_9.len()
  345         -
        )))
  346         -
    } else {
  347         -
        let mut var_9 = var_9;
  348         -
        Ok(var_9.pop())
  349         -
    }
  350         -
}
  351         -
  352    336   
pub(crate) fn de_version_id_header(
  353    337   
    header_map: &::aws_smithy_runtime_api::http::Headers,
  354    338   
) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> {
  355    339   
    let headers = header_map.get_all("x-amz-version-id");
  356    340   
    ::aws_smithy_http::header::one_or_none(headers)
  357    341   
}
  358    342   
  359    343   
pub(crate) fn de_website_redirect_location_header(
  360    344   
    header_map: &::aws_smithy_runtime_api::http::Headers,
  361    345   
) -> ::std::result::Result<::std::option::Option<::std::string::String>, ::aws_smithy_http::header::ParseError> {

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_idempotency_parameter_mismatch.rs

@@ -1,0 +32,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(unused_mut)]
    3         -
pub fn de_idempotency_parameter_mismatch_xml_err(
    4         -
    inp: &[u8],
    5         -
    mut builder: crate::types::error::builders::IdempotencyParameterMismatchBuilder,
    6         -
) -> std::result::Result<crate::types::error::builders::IdempotencyParameterMismatchBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
    7         -
    if inp.is_empty() {
    8         -
        return Ok(builder);
    9         -
    }
   10         -
    let mut document = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   11         -
    #[allow(unused_mut)]
   12         -
    let mut error_decoder = crate::rest_xml_unwrapped_errors::error_scope(&mut document)?;
   13         -
    while let Some(mut tag) = error_decoder.next_tag() {
   14         -
        match tag.start_el() {
   15         -
            s if s.matches("Message") /* Message com.amazonaws.s3#IdempotencyParameterMismatch$Message */ =>  {
   16         -
                let var_1 =
   17         -
                    Some(
   18         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   19         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   20         -
                            .into()
   21         -
                        )
   22         -
                        ?
   23         -
                    )
   24         -
                ;
   25         -
                builder = builder.set_message(var_1);
   26         -
            }
   27         -
            ,
   28         -
            _ => {}
   29         -
        }
   30         -
    }
   31         -
    Ok(builder)
   32         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_input_serialization.rs

@@ -1,0 +25,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_input_serialization(
    3         -
    input: &crate::types::InputSerialization,
    4         -
    writer: ::aws_smithy_xml::encode::ElWriter,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    #[allow(unused_mut)]
    7         -
    let mut scope = writer.finish();
    8         -
    if let Some(var_1) = &input.csv {
    9         -
        let inner_writer = scope.start_el("CSV");
   10         -
        crate::protocol_serde::shape_csv_input::ser_csv_input(var_1, inner_writer)?
   11         -
    }
   12         -
    if let Some(var_2) = &input.compression_type {
   13         -
        let mut inner_writer = scope.start_el("CompressionType").finish();
   14         -
        inner_writer.data(var_2.as_str());
   15         -
    }
   16         -
    if let Some(var_3) = &input.json {
   17         -
        let inner_writer = scope.start_el("JSON");
   18         -
        crate::protocol_serde::shape_json_input::ser_json_input(var_3, inner_writer)?
   19         -
    }
   20         -
    if let Some(_var_4) = &input.parquet {
   21         -
        scope.start_el("Parquet").finish();
   22         -
    }
   23         -
    scope.finish();
   24         -
    Ok(())
   25         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_inventory_table_configuration.rs

@@ -1,0 +18,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_inventory_table_configuration(
    3         -
    input: &crate::types::InventoryTableConfiguration,
    4         -
    writer: ::aws_smithy_xml::encode::ElWriter,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    #[allow(unused_mut)]
    7         -
    let mut scope = writer.finish();
    8         -
    {
    9         -
        let mut inner_writer = scope.start_el("ConfigurationState").finish();
   10         -
        inner_writer.data(input.configuration_state.as_str());
   11         -
    }
   12         -
    if let Some(var_1) = &input.encryption_configuration {
   13         -
        let inner_writer = scope.start_el("EncryptionConfiguration");
   14         -
        crate::protocol_serde::shape_metadata_table_encryption_configuration::ser_metadata_table_encryption_configuration(var_1, inner_writer)?
   15         -
    }
   16         -
    scope.finish();
   17         -
    Ok(())
   18         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_inventory_table_configuration_result.rs

@@ -1,0 +79,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::needless_question_mark)]
    3         -
pub fn de_inventory_table_configuration_result(
    4         -
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    5         -
) -> ::std::result::Result<crate::types::InventoryTableConfigurationResult, ::aws_smithy_xml::decode::XmlDecodeError> {
    6         -
    #[allow(unused_mut)]
    7         -
    let mut builder = crate::types::InventoryTableConfigurationResult::builder();
    8         -
    while let Some(mut tag) = decoder.next_tag() {
    9         -
        match tag.start_el() {
   10         -
            s if s.matches("ConfigurationState") /* ConfigurationState com.amazonaws.s3#InventoryTableConfigurationResult$ConfigurationState */ =>  {
   11         -
                let var_1 =
   12         -
                    Some(
   13         -
                        Result::<crate::types::InventoryConfigurationState, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   14         -
                            crate::types::InventoryConfigurationState::from(
   15         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   16         -
                            )
   17         -
                        )
   18         -
                        ?
   19         -
                    )
   20         -
                ;
   21         -
                builder = builder.set_configuration_state(var_1);
   22         -
            }
   23         -
            ,
   24         -
            s if s.matches("TableStatus") /* TableStatus com.amazonaws.s3#InventoryTableConfigurationResult$TableStatus */ =>  {
   25         -
                let var_2 =
   26         -
                    Some(
   27         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   28         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   29         -
                            .into()
   30         -
                        )
   31         -
                        ?
   32         -
                    )
   33         -
                ;
   34         -
                builder = builder.set_table_status(var_2);
   35         -
            }
   36         -
            ,
   37         -
            s if s.matches("Error") /* Error com.amazonaws.s3#InventoryTableConfigurationResult$Error */ =>  {
   38         -
                let var_3 =
   39         -
                    Some(
   40         -
                        crate::protocol_serde::shape_error_details::de_error_details(&mut tag)
   41         -
                        ?
   42         -
                    )
   43         -
                ;
   44         -
                builder = builder.set_error(var_3);
   45         -
            }
   46         -
            ,
   47         -
            s if s.matches("TableName") /* TableName com.amazonaws.s3#InventoryTableConfigurationResult$TableName */ =>  {
   48         -
                let var_4 =
   49         -
                    Some(
   50         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   51         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   52         -
                            .into()
   53         -
                        )
   54         -
                        ?
   55         -
                    )
   56         -
                ;
   57         -
                builder = builder.set_table_name(var_4);
   58         -
            }
   59         -
            ,
   60         -
            s if s.matches("TableArn") /* TableArn com.amazonaws.s3#InventoryTableConfigurationResult$TableArn */ =>  {
   61         -
                let var_5 =
   62         -
                    Some(
   63         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   64         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   65         -
                            .into()
   66         -
                        )
   67         -
                        ?
   68         -
                    )
   69         -
                ;
   70         -
                builder = builder.set_table_arn(var_5);
   71         -
            }
   72         -
            ,
   73         -
            _ => {}
   74         -
        }
   75         -
    }
   76         -
    Ok(crate::serde_util::inventory_table_configuration_result_correct_errors(builder)
   77         -
        .build()
   78         -
        .map_err(|_| ::aws_smithy_xml::decode::XmlDecodeError::custom("missing field"))?)
   79         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_inventory_table_configuration_updates.rs

@@ -1,0 +18,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_inventory_table_configuration_updates(
    3         -
    input: &crate::types::InventoryTableConfigurationUpdates,
    4         -
    writer: ::aws_smithy_xml::encode::ElWriter,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    #[allow(unused_mut)]
    7         -
    let mut scope = writer.finish();
    8         -
    {
    9         -
        let mut inner_writer = scope.start_el("ConfigurationState").finish();
   10         -
        inner_writer.data(input.configuration_state.as_str());
   11         -
    }
   12         -
    if let Some(var_1) = &input.encryption_configuration {
   13         -
        let inner_writer = scope.start_el("EncryptionConfiguration");
   14         -
        crate::protocol_serde::shape_metadata_table_encryption_configuration::ser_metadata_table_encryption_configuration(var_1, inner_writer)?
   15         -
    }
   16         -
    scope.finish();
   17         -
    Ok(())
   18         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_journal_table_configuration.rs

@@ -1,0 +18,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_journal_table_configuration(
    3         -
    input: &crate::types::JournalTableConfiguration,
    4         -
    writer: ::aws_smithy_xml::encode::ElWriter,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    #[allow(unused_mut)]
    7         -
    let mut scope = writer.finish();
    8         -
    if let Some(var_1) = &input.record_expiration {
    9         -
        let inner_writer = scope.start_el("RecordExpiration");
   10         -
        crate::protocol_serde::shape_record_expiration::ser_record_expiration(var_1, inner_writer)?
   11         -
    }
   12         -
    if let Some(var_2) = &input.encryption_configuration {
   13         -
        let inner_writer = scope.start_el("EncryptionConfiguration");
   14         -
        crate::protocol_serde::shape_metadata_table_encryption_configuration::ser_metadata_table_encryption_configuration(var_2, inner_writer)?
   15         -
    }
   16         -
    scope.finish();
   17         -
    Ok(())
   18         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_journal_table_configuration_result.rs

@@ -1,0 +75,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::needless_question_mark)]
    3         -
pub fn de_journal_table_configuration_result(
    4         -
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    5         -
) -> ::std::result::Result<crate::types::JournalTableConfigurationResult, ::aws_smithy_xml::decode::XmlDecodeError> {
    6         -
    #[allow(unused_mut)]
    7         -
    let mut builder = crate::types::JournalTableConfigurationResult::builder();
    8         -
    while let Some(mut tag) = decoder.next_tag() {
    9         -
        match tag.start_el() {
   10         -
            s if s.matches("TableStatus") /* TableStatus com.amazonaws.s3#JournalTableConfigurationResult$TableStatus */ =>  {
   11         -
                let var_1 =
   12         -
                    Some(
   13         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   14         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   15         -
                            .into()
   16         -
                        )
   17         -
                        ?
   18         -
                    )
   19         -
                ;
   20         -
                builder = builder.set_table_status(var_1);
   21         -
            }
   22         -
            ,
   23         -
            s if s.matches("Error") /* Error com.amazonaws.s3#JournalTableConfigurationResult$Error */ =>  {
   24         -
                let var_2 =
   25         -
                    Some(
   26         -
                        crate::protocol_serde::shape_error_details::de_error_details(&mut tag)
   27         -
                        ?
   28         -
                    )
   29         -
                ;
   30         -
                builder = builder.set_error(var_2);
   31         -
            }
   32         -
            ,
   33         -
            s if s.matches("TableName") /* TableName com.amazonaws.s3#JournalTableConfigurationResult$TableName */ =>  {
   34         -
                let var_3 =
   35         -
                    Some(
   36         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   37         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   38         -
                            .into()
   39         -
                        )
   40         -
                        ?
   41         -
                    )
   42         -
                ;
   43         -
                builder = builder.set_table_name(var_3);
   44         -
            }
   45         -
            ,
   46         -
            s if s.matches("TableArn") /* TableArn com.amazonaws.s3#JournalTableConfigurationResult$TableArn */ =>  {
   47         -
                let var_4 =
   48         -
                    Some(
   49         -
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   50         -
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   51         -
                            .into()
   52         -
                        )
   53         -
                        ?
   54         -
                    )
   55         -
                ;
   56         -
                builder = builder.set_table_arn(var_4);
   57         -
            }
   58         -
            ,
   59         -
            s if s.matches("RecordExpiration") /* RecordExpiration com.amazonaws.s3#JournalTableConfigurationResult$RecordExpiration */ =>  {
   60         -
                let var_5 =
   61         -
                    Some(
   62         -
                        crate::protocol_serde::shape_record_expiration::de_record_expiration(&mut tag)
   63         -
                        ?
   64         -
                    )
   65         -
                ;
   66         -
                builder = builder.set_record_expiration(var_5);
   67         -
            }
   68         -
            ,
   69         -
            _ => {}
   70         -
        }
   71         -
    }
   72         -
    Ok(crate::serde_util::journal_table_configuration_result_correct_errors(builder)
   73         -
        .build()
   74         -
        .map_err(|_| ::aws_smithy_xml::decode::XmlDecodeError::custom("missing field"))?)
   75         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_journal_table_configuration_updates.rs

@@ -1,0 +14,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_journal_table_configuration_updates(
    3         -
    input: &crate::types::JournalTableConfigurationUpdates,
    4         -
    writer: ::aws_smithy_xml::encode::ElWriter,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    #[allow(unused_mut)]
    7         -
    let mut scope = writer.finish();
    8         -
    if let Some(var_1) = &input.record_expiration {
    9         -
        let inner_writer = scope.start_el("RecordExpiration");
   10         -
        crate::protocol_serde::shape_record_expiration::ser_record_expiration(var_1, inner_writer)?
   11         -
    }
   12         -
    scope.finish();
   13         -
    Ok(())
   14         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_json_input.rs

@@ -1,0 +14,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_json_input(
    3         -
    input: &crate::types::JsonInput,
    4         -
    writer: ::aws_smithy_xml::encode::ElWriter,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    #[allow(unused_mut)]
    7         -
    let mut scope = writer.finish();
    8         -
    if let Some(var_1) = &input.r#type {
    9         -
        let mut inner_writer = scope.start_el("Type").finish();
   10         -
        inner_writer.data(var_1.as_str());
   11         -
    }
   12         -
    scope.finish();
   13         -
    Ok(())
   14         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_json_output.rs

@@ -1,0 +14,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_json_output(
    3         -
    input: &crate::types::JsonOutput,
    4         -
    writer: ::aws_smithy_xml::encode::ElWriter,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    #[allow(unused_mut)]
    7         -
    let mut scope = writer.finish();
    8         -
    if let Some(var_1) = &input.record_delimiter {
    9         -
        let mut inner_writer = scope.start_el("RecordDelimiter").finish();
   10         -
        inner_writer.data(var_1.as_str());
   11         -
    }
   12         -
    scope.finish();
   13         -
    Ok(())
   14         -
}