aws_sdk_devicefarm/protocol_serde/
shape_schedule_run_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_schedule_run_input_input(
3    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4    input: &crate::operation::schedule_run::ScheduleRunInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6    if let Some(var_1) = &input.project_arn {
7        object.key("projectArn").string(var_1.as_str());
8    }
9    if let Some(var_2) = &input.app_arn {
10        object.key("appArn").string(var_2.as_str());
11    }
12    if let Some(var_3) = &input.device_pool_arn {
13        object.key("devicePoolArn").string(var_3.as_str());
14    }
15    if let Some(var_4) = &input.device_selection_configuration {
16        #[allow(unused_mut)]
17        let mut object_5 = object.key("deviceSelectionConfiguration").start_object();
18        crate::protocol_serde::shape_device_selection_configuration::ser_device_selection_configuration(&mut object_5, var_4)?;
19        object_5.finish();
20    }
21    if let Some(var_6) = &input.name {
22        object.key("name").string(var_6.as_str());
23    }
24    if let Some(var_7) = &input.test {
25        #[allow(unused_mut)]
26        let mut object_8 = object.key("test").start_object();
27        crate::protocol_serde::shape_schedule_run_test::ser_schedule_run_test(&mut object_8, var_7)?;
28        object_8.finish();
29    }
30    if let Some(var_9) = &input.configuration {
31        #[allow(unused_mut)]
32        let mut object_10 = object.key("configuration").start_object();
33        crate::protocol_serde::shape_schedule_run_configuration::ser_schedule_run_configuration(&mut object_10, var_9)?;
34        object_10.finish();
35    }
36    if let Some(var_11) = &input.execution_configuration {
37        #[allow(unused_mut)]
38        let mut object_12 = object.key("executionConfiguration").start_object();
39        crate::protocol_serde::shape_execution_configuration::ser_execution_configuration(&mut object_12, var_11)?;
40        object_12.finish();
41    }
42    Ok(())
43}