Struct aws_sdk_s3control::model::S3Tag
source · #[non_exhaustive]pub struct S3Tag { /* private fields */ }
Expand description
Implementations§
source§impl S3Tag
impl S3Tag
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture S3Tag
.
Examples found in repository?
src/xml_deser.rs (line 3718)
3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751
pub fn deser_structure_crate_model_s3_tag(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::S3Tag, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::S3Tag::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Key") /* Key com.amazonaws.s3control#S3Tag$Key */ => {
let var_161 =
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_key(var_161);
}
,
s if s.matches("Value") /* Value com.amazonaws.s3control#S3Tag$Value */ => {
let var_162 =
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_value(var_162);
}
,
_ => {}
}
}
Ok(builder.build())
}