aws_sdk_datasync/protocol_serde/
shape_update_location_fsx_ontap_input.rs1pub fn ser_update_location_fsx_ontap_input_input(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::operation::update_location_fsx_ontap::UpdateLocationFsxOntapInput,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 if let Some(var_1) = &input.location_arn {
7 object.key("LocationArn").string(var_1.as_str());
8 }
9 if let Some(var_2) = &input.protocol {
10 #[allow(unused_mut)]
11 let mut object_3 = object.key("Protocol").start_object();
12 crate::protocol_serde::shape_fsx_update_protocol::ser_fsx_update_protocol(&mut object_3, var_2)?;
13 object_3.finish();
14 }
15 if let Some(var_4) = &input.subdirectory {
16 object.key("Subdirectory").string(var_4.as_str());
17 }
18 Ok(())
19}