Struct aws_sdk_s3control::model::RegionReport
source · #[non_exhaustive]pub struct RegionReport { /* private fields */ }
Expand description
A combination of a bucket and Region that's part of a Multi-Region Access Point.
Implementations§
source§impl RegionReport
impl RegionReport
source§impl RegionReport
impl RegionReport
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RegionReport
.
Examples found in repository?
src/xml_deser.rs (line 5478)
5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511
pub fn deser_structure_crate_model_region_report(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::RegionReport, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::RegionReport::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Bucket") /* Bucket com.amazonaws.s3control#RegionReport$Bucket */ => {
let var_257 =
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_257);
}
,
s if s.matches("Region") /* Region com.amazonaws.s3control#RegionReport$Region */ => {
let var_258 =
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_region(var_258);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for RegionReport
impl Clone for RegionReport
source§fn clone(&self) -> RegionReport
fn clone(&self) -> RegionReport
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more