#[allow(unused_mut)]
pub fn ser_baseline_performance_factors(
mut writer: ::aws_smithy_query::QueryValueWriter,
input: &crate::types::BaselinePerformanceFactors,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
#[allow(unused_mut)]
let mut scope_1 = writer.prefix("Cpu");
if let Some(var_2) = &input.cpu {
crate::protocol_serde::shape_cpu_performance_factor::ser_cpu_performance_factor(scope_1, var_2)?;
}
Ok(())
}
#[allow(clippy::needless_question_mark)]
pub fn de_baseline_performance_factors(
decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
) -> ::std::result::Result<crate::types::BaselinePerformanceFactors, ::aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::types::BaselinePerformanceFactors::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("cpu") => {
let var_3 =
Some(
crate::protocol_serde::shape_cpu_performance_factor::de_cpu_performance_factor(&mut tag)
?
)
;
builder = builder.set_cpu(var_3);
}
,
_ => {}
}
}
Ok(builder.build())
}