Struct aws_sdk_elasticloadbalancing::model::Tag
source · #[non_exhaustive]pub struct Tag { /* private fields */ }
Expand description
Information about a tag.
Implementations§
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 3160)
3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193
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.elasticloadbalancing#Tag$Key */ => {
let var_110 =
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_110);
}
,
s if s.matches("Value") /* Value com.amazonaws.elasticloadbalancing#Tag$Value */ => {
let var_111 =
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_111);
}
,
_ => {}
}
}
Ok(builder.build())
}