aws_sdk_applicationinsights/protocol_serde/
shape_list_components_input.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_list_components_input_input(
3    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4    input: &crate::operation::list_components::ListComponentsInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6    if let Some(var_1) = &input.resource_group_name {
7        object.key("ResourceGroupName").string(var_1.as_str());
8    }
9    if let Some(var_2) = &input.max_results {
10        object.key("MaxResults").number(
11            #[allow(clippy::useless_conversion)]
12            ::aws_smithy_types::Number::NegInt((*var_2).into()),
13        );
14    }
15    if let Some(var_3) = &input.next_token {
16        object.key("NextToken").string(var_3.as_str());
17    }
18    if let Some(var_4) = &input.account_id {
19        object.key("AccountId").string(var_4.as_str());
20    }
21    Ok(())
22}