Struct aws_sdk_cloudfront::model::Tag
source · #[non_exhaustive]pub struct Tag { /* private fields */ }
Expand description
A complex type that contains Tag
key and Tag
value.
Implementations§
source§impl Tag
impl Tag
source§impl Tag
impl Tag
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture Tag
.
Examples found in repository?
src/xml_deser.rs (line 13683)
13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716
pub fn deser_structure_crate_model_tag(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Tag, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Tag::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Key") /* Key com.amazonaws.cloudfront#Tag$Key */ => {
let var_573 =
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_573);
}
,
s if s.matches("Value") /* Value com.amazonaws.cloudfront#Tag$Value */ => {
let var_574 =
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_574);
}
,
_ => {}
}
}
Ok(builder.build())
}