Struct aws_sdk_s3control::model::Region
source · #[non_exhaustive]pub struct Region { /* private fields */ }
Expand description
A Region that supports a Multi-Region Access Point as well as the associated bucket for the Region.
Implementations§
source§impl Region
impl Region
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture Region
.
Examples found in repository?
src/xml_deser.rs (line 6616)
6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636
pub fn deser_structure_crate_model_region(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Region, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Region::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Bucket") /* Bucket com.amazonaws.s3control#Region$Bucket */ => {
let var_310 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_bucket(var_310);
}
,
_ => {}
}
}
Ok(builder.build())
}