aws_sdk_accessanalyzer/protocol_serde/
shape_inline_archive_rule.rs1pub fn ser_inline_archive_rule(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::types::InlineArchiveRule,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 {
7 object.key("ruleName").string(input.rule_name.as_str());
8 }
9 {
10 #[allow(unused_mut)]
11 let mut object_1 = object.key("filter").start_object();
12 for (key_2, value_3) in &input.filter {
13 {
14 #[allow(unused_mut)]
15 let mut object_4 = object_1.key(key_2.as_str()).start_object();
16 crate::protocol_serde::shape_criterion::ser_criterion(&mut object_4, value_3)?;
17 object_4.finish();
18 }
19 }
20 object_1.finish();
21 }
22 Ok(())
23}