1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 2 | pub fn ser_tool_choice(
|
3 3 | object_5: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
|
4 4 | input: &crate::types::ToolChoice,
|
5 5 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
|
6 6 | match input {
|
7 - | crate::types::ToolChoice::Auto(inner) => {
|
7 + | crate::types::ToolChoice::Auto(_inner) => {
|
8 8 | #[allow(unused_mut)]
|
9 9 | let mut object_1 = object_5.key("auto").start_object();
|
10 - | crate::protocol_serde::shape_auto_tool_choice::ser_auto_tool_choice(&mut object_1, inner)?;
|
10 + | crate::protocol_serde::shape_auto_tool_choice::ser_auto_tool_choice(&mut object_1, _inner)?;
|
11 11 | object_1.finish();
|
12 12 | }
|
13 - | crate::types::ToolChoice::Any(inner) => {
|
13 + | crate::types::ToolChoice::Any(_inner) => {
|
14 14 | #[allow(unused_mut)]
|
15 15 | let mut object_2 = object_5.key("any").start_object();
|
16 - | crate::protocol_serde::shape_any_tool_choice::ser_any_tool_choice(&mut object_2, inner)?;
|
16 + | crate::protocol_serde::shape_any_tool_choice::ser_any_tool_choice(&mut object_2, _inner)?;
|
17 17 | object_2.finish();
|
18 18 | }
|
19 19 | crate::types::ToolChoice::Tool(inner) => {
|
20 20 | #[allow(unused_mut)]
|
21 21 | let mut object_3 = object_5.key("tool").start_object();
|
22 22 | crate::protocol_serde::shape_specific_tool_choice::ser_specific_tool_choice(&mut object_3, inner)?;
|
23 23 | object_3.finish();
|
24 24 | }
|
25 25 | crate::types::ToolChoice::Unknown => return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant("ToolChoice")),
|
26 26 | }
|