aws_sdk_codeartifact/protocol_serde/
shape_update_repository_input.rs1pub fn ser_update_repository_input_input(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::operation::update_repository::UpdateRepositoryInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 if let Some(var_1) = &input.description {
7 object.key("description").string(var_1.as_str());
8 }
9 if let Some(var_2) = &input.upstreams {
10 let mut array_3 = object.key("upstreams").start_array();
11 for item_4 in var_2 {
12 {
13 #[allow(unused_mut)]
14 let mut object_5 = array_3.value().start_object();
15 crate::protocol_serde::shape_upstream_repository::ser_upstream_repository(&mut object_5, item_4)?;
16 object_5.finish();
17 }
18 }
19 array_3.finish();
20 }
21 Ok(())
22}