1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(unused_mut)]
pub fn ser_build_configuration(
    mut writer: ::aws_smithy_query::QueryValueWriter,
    input: &crate::types::BuildConfiguration,
) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    #[allow(unused_mut)]
    let mut scope_1 = writer.prefix("ArtifactName");
    if let Some(var_2) = &input.artifact_name {
        scope_1.string(var_2);
    }
    #[allow(unused_mut)]
    let mut scope_3 = writer.prefix("CodeBuildServiceRole");
    {
        scope_3.string(&input.code_build_service_role);
    }
    #[allow(unused_mut)]
    let mut scope_4 = writer.prefix("ComputeType");
    if let Some(var_5) = &input.compute_type {
        scope_4.string(var_5.as_str());
    }
    #[allow(unused_mut)]
    let mut scope_6 = writer.prefix("Image");
    {
        scope_6.string(&input.image);
    }
    #[allow(unused_mut)]
    let mut scope_7 = writer.prefix("TimeoutInMinutes");
    if let Some(var_8) = &input.timeout_in_minutes {
        scope_7.number(
            #[allow(clippy::useless_conversion)]
            ::aws_smithy_types::Number::NegInt((*var_8).into()),
        );
    }
    Ok(())
}