pub fn ser_describe_pull_through_cache_rules_input_input(
object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
input: &crate::operation::describe_pull_through_cache_rules::DescribePullThroughCacheRulesInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
if let Some(var_1) = &input.registry_id {
object.key("registryId").string(var_1.as_str());
}
if let Some(var_2) = &input.ecr_repository_prefixes {
let mut array_3 = object.key("ecrRepositoryPrefixes").start_array();
for item_4 in var_2 {
{
array_3.value().string(item_4.as_str());
}
}
array_3.finish();
}
if let Some(var_5) = &input.next_token {
object.key("nextToken").string(var_5.as_str());
}
if let Some(var_6) = &input.max_results {
object.key("maxResults").number(
#[allow(clippy::useless_conversion)]
::aws_smithy_types::Number::NegInt((*var_6).into()),
);
}
Ok(())
}