pub fn ser_tool_configuration(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::types::ToolConfiguration,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
{
let mut array_1 = object.key("tools").start_array();
for item_2 in &input.tools {
{
#[allow(unused_mut)]
let mut object_3 = array_1.value().start_object();
crate::protocol_serde::shape_tool::ser_tool(&mut object_3, item_2)?;
object_3.finish();
}
}
array_1.finish();
}
if let Some(var_4) = &input.tool_choice {
#[allow(unused_mut)]
let mut object_5 = object.key("toolChoice").start_object();
crate::protocol_serde::shape_tool_choice::ser_tool_choice(&mut object_5, var_4)?;
object_5.finish();
}
Ok(())
}