aws_sdk_devicefarm/protocol_serde/
shape_execution_configuration.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_execution_configuration(
3    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4    input: &crate::types::ExecutionConfiguration,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6    if let Some(var_1) = &input.job_timeout_minutes {
7        object.key("jobTimeoutMinutes").number(
8            #[allow(clippy::useless_conversion)]
9            ::aws_smithy_types::Number::NegInt((*var_1).into()),
10        );
11    }
12    if let Some(var_2) = &input.accounts_cleanup {
13        object.key("accountsCleanup").boolean(*var_2);
14    }
15    if let Some(var_3) = &input.app_packages_cleanup {
16        object.key("appPackagesCleanup").boolean(*var_3);
17    }
18    if let Some(var_4) = &input.video_capture {
19        object.key("videoCapture").boolean(*var_4);
20    }
21    if let Some(var_5) = &input.skip_app_resign {
22        object.key("skipAppResign").boolean(*var_5);
23    }
24    Ok(())
25}