Struct aws_sdk_ec2::model::PtrUpdateStatus
source · #[non_exhaustive]pub struct PtrUpdateStatus { /* private fields */ }
Expand description
The status of an updated pointer (PTR) record for an Elastic IP address.
Implementations§
source§impl PtrUpdateStatus
impl PtrUpdateStatus
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PtrUpdateStatus
.
Examples found in repository?
src/xml_deser.rs (line 54723)
54719 54720 54721 54722 54723 54724 54725 54726 54727 54728 54729 54730 54731 54732 54733 54734 54735 54736 54737 54738 54739 54740 54741 54742 54743 54744 54745 54746 54747 54748 54749 54750 54751 54752 54753 54754 54755 54756 54757 54758 54759 54760 54761 54762 54763 54764 54765 54766 54767 54768 54769
pub fn deser_structure_crate_model_ptr_update_status(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PtrUpdateStatus, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PtrUpdateStatus::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("value") /* Value com.amazonaws.ec2#PtrUpdateStatus$Value */ => {
let var_2634 =
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_2634);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#PtrUpdateStatus$Status */ => {
let var_2635 =
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_status(var_2635);
}
,
s if s.matches("reason") /* Reason com.amazonaws.ec2#PtrUpdateStatus$Reason */ => {
let var_2636 =
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_reason(var_2636);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for PtrUpdateStatus
impl Clone for PtrUpdateStatus
source§fn clone(&self) -> PtrUpdateStatus
fn clone(&self) -> PtrUpdateStatus
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