Struct aws_sdk_ec2::model::DiskImageVolumeDescription
source · #[non_exhaustive]pub struct DiskImageVolumeDescription { /* private fields */ }
Expand description
Describes a disk image volume.
Implementations§
source§impl DiskImageVolumeDescription
impl DiskImageVolumeDescription
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DiskImageVolumeDescription
.
Examples found in repository?
src/xml_deser.rs (line 62571)
62567 62568 62569 62570 62571 62572 62573 62574 62575 62576 62577 62578 62579 62580 62581 62582 62583 62584 62585 62586 62587 62588 62589 62590 62591 62592 62593 62594 62595 62596 62597 62598 62599 62600 62601 62602 62603 62604 62605 62606
pub fn deser_structure_crate_model_disk_image_volume_description(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::DiskImageVolumeDescription, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::DiskImageVolumeDescription::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("id") /* Id com.amazonaws.ec2#DiskImageVolumeDescription$Id */ => {
let var_3053 =
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_id(var_3053);
}
,
s if s.matches("size") /* Size com.amazonaws.ec2#DiskImageVolumeDescription$Size */ => {
let var_3054 =
Some(
{
<i64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `com.amazonaws.ec2#Long`)"))
}
?
)
;
builder = builder.set_size(var_3054);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for DiskImageVolumeDescription
impl Clone for DiskImageVolumeDescription
source§fn clone(&self) -> DiskImageVolumeDescription
fn clone(&self) -> DiskImageVolumeDescription
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