// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. pub fn ser_detach_object_input_input( object: &mut ::aws_smithy_json::serialize::JsonObjectWriter, input: &crate::operation::detach_object::DetachObjectInput, ) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> { if let Some(var_1) = &input.link_name { object.key("LinkName").string(var_1.as_str()); } if let Some(var_2) = &input.parent_reference { #[allow(unused_mut)] let mut object_3 = object.key("ParentReference").start_object(); crate::protocol_serde::shape_object_reference::ser_object_reference(&mut object_3, var_2)?; object_3.finish(); } Ok(()) }