aws-sdk-s3control 1.119.0

AWS SDK for AWS S3 Control
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(clippy::needless_question_mark)]
pub fn de_s3_generated_manifest_descriptor(
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    depth: u32,
) -> ::std::result::Result<crate::types::S3GeneratedManifestDescriptor, ::aws_smithy_xml::decode::XmlDecodeError> {
    if depth >= 128u32 {
        return Err(::aws_smithy_xml::decode::XmlDecodeError::custom("maximum nesting depth exceeded"));
    }
    #[allow(unused_mut)]
    let mut builder = crate::types::S3GeneratedManifestDescriptor::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("Format") /* Format com.amazonaws.s3control#S3GeneratedManifestDescriptor$Format */ =>  {
                let var_1 =
                    Some(
                        Result::<crate::types::GeneratedManifestFormat, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
                            crate::types::GeneratedManifestFormat::from(
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
                            )
                        )
                        ?
                    )
                ;
                builder = builder.set_format(var_1);
            }
            ,
            s if s.matches("Location") /* Location com.amazonaws.s3control#S3GeneratedManifestDescriptor$Location */ =>  {
                let var_2 =
                    Some(
                        crate::protocol_serde::shape_job_manifest_location::de_job_manifest_location(&mut tag, depth + 1)
                        ?
                    )
                ;
                builder = builder.set_location(var_2);
            }
            ,
            _ => {}
        }
    }
    Ok(builder.build())
}