aws_sdk_ssm/protocol_serde/
shape_describe_automation_step_executions_input.rs1pub fn ser_describe_automation_step_executions_input_input(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::operation::describe_automation_step_executions::DescribeAutomationStepExecutionsInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 if let Some(var_1) = &input.automation_execution_id {
7 object.key("AutomationExecutionId").string(var_1.as_str());
8 }
9 if let Some(var_2) = &input.filters {
10 let mut array_3 = object.key("Filters").start_array();
11 for item_4 in var_2 {
12 {
13 #[allow(unused_mut)]
14 let mut object_5 = array_3.value().start_object();
15 crate::protocol_serde::shape_step_execution_filter::ser_step_execution_filter(&mut object_5, item_4)?;
16 object_5.finish();
17 }
18 }
19 array_3.finish();
20 }
21 if let Some(var_6) = &input.next_token {
22 object.key("NextToken").string(var_6.as_str());
23 }
24 if let Some(var_7) = &input.max_results {
25 object.key("MaxResults").number(
26 #[allow(clippy::useless_conversion)]
27 ::aws_smithy_types::Number::NegInt((*var_7).into()),
28 );
29 }
30 if let Some(var_8) = &input.reverse_order {
31 object.key("ReverseOrder").boolean(*var_8);
32 }
33 Ok(())
34}