Struct aws_sdk_ec2::model::TargetGroup
source · #[non_exhaustive]pub struct TargetGroup { /* private fields */ }
Expand description
Describes a load balancer target group.
Implementations§
source§impl TargetGroup
impl TargetGroup
source§impl TargetGroup
impl TargetGroup
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TargetGroup
.
Examples found in repository?
src/xml_deser.rs (line 71265)
71261 71262 71263 71264 71265 71266 71267 71268 71269 71270 71271 71272 71273 71274 71275 71276 71277 71278 71279 71280 71281 71282 71283 71284 71285
pub fn deser_structure_crate_model_target_group(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TargetGroup, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TargetGroup::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("arn") /* Arn com.amazonaws.ec2#TargetGroup$Arn */ => {
let var_3515 =
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_arn(var_3515);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TargetGroup
impl Clone for TargetGroup
source§fn clone(&self) -> TargetGroup
fn clone(&self) -> TargetGroup
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