aws_sdk_s3/protocol_serde/
shape_cors_configuration.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_cors_configuration(
3    input: &crate::types::CorsConfiguration,
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        for list_item_1 in &input.cors_rules {
10            {
11                let inner_writer = scope.start_el("CORSRule");
12                crate::protocol_serde::shape_cors_rule::ser_cors_rule(list_item_1, inner_writer)?
13            }
14        }
15    }
16    scope.finish();
17    Ok(())
18}