Struct aws_sdk_ec2::model::AvailabilityZoneMessage
source · #[non_exhaustive]pub struct AvailabilityZoneMessage { /* private fields */ }
Expand description
Describes a message about an Availability Zone, Local Zone, or Wavelength Zone.
Implementations§
source§impl AvailabilityZoneMessage
impl AvailabilityZoneMessage
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture AvailabilityZoneMessage
.
Examples found in repository?
src/xml_deser.rs (line 64832)
64828 64829 64830 64831 64832 64833 64834 64835 64836 64837 64838 64839 64840 64841 64842 64843 64844 64845 64846 64847 64848 64849 64850 64851 64852
pub fn deser_structure_crate_model_availability_zone_message(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AvailabilityZoneMessage, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AvailabilityZoneMessage::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("message") /* Message com.amazonaws.ec2#AvailabilityZoneMessage$Message */ => {
let var_3197 =
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_message(var_3197);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for AvailabilityZoneMessage
impl Clone for AvailabilityZoneMessage
source§fn clone(&self) -> AvailabilityZoneMessage
fn clone(&self) -> AvailabilityZoneMessage
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