Struct aws_sdk_ec2::model::TotalLocalStorageGb
source · #[non_exhaustive]pub struct TotalLocalStorageGb { /* private fields */ }
Expand description
The minimum and maximum amount of total local storage, in GB.
Implementations§
source§impl TotalLocalStorageGb
impl TotalLocalStorageGb
source§impl TotalLocalStorageGb
impl TotalLocalStorageGb
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TotalLocalStorageGb
.
Examples found in repository?
src/xml_deser.rs (line 62108)
62104 62105 62106 62107 62108 62109 62110 62111 62112 62113 62114 62115 62116 62117 62118 62119 62120 62121 62122 62123 62124 62125 62126 62127 62128 62129 62130 62131 62132 62133 62134 62135 62136 62137 62138 62139 62140 62141 62142 62143 62144 62145
pub fn deser_structure_crate_model_total_local_storage_gb(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TotalLocalStorageGb, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TotalLocalStorageGb::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("min") /* Min com.amazonaws.ec2#TotalLocalStorageGB$Min */ => {
let var_3033 =
Some(
{
<f64 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 (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_min(var_3033);
}
,
s if s.matches("max") /* Max com.amazonaws.ec2#TotalLocalStorageGB$Max */ => {
let var_3034 =
Some(
{
<f64 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 (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_max(var_3034);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TotalLocalStorageGb
impl Clone for TotalLocalStorageGb
source§fn clone(&self) -> TotalLocalStorageGb
fn clone(&self) -> TotalLocalStorageGb
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