aws_sdk_iottwinmaker/protocol_serde/
shape_execute_query_input.rs1pub fn ser_execute_query_input_input(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::operation::execute_query::ExecuteQueryInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 if let Some(var_1) = &input.max_results {
7 object.key("maxResults").number(
8 #[allow(clippy::useless_conversion)]
9 ::aws_smithy_types::Number::NegInt((*var_1).into()),
10 );
11 }
12 if let Some(var_2) = &input.next_token {
13 object.key("nextToken").string(var_2.as_str());
14 }
15 if let Some(var_3) = &input.query_statement {
16 object.key("queryStatement").string(var_3.as_str());
17 }
18 if let Some(var_4) = &input.workspace_id {
19 object.key("workspaceId").string(var_4.as_str());
20 }
21 Ok(())
22}