1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_create_export_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::create_export::CreateExportInput,
) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.file_format {
        object.key("fileFormat").string(var_1.as_str());
    }
    if let Some(var_2) = &input.file_password {
        object.key("filePassword").string(var_2.as_str());
    }
    if let Some(var_3) = &input.resource_specification {
        #[allow(unused_mut)]
        let mut object_4 = object.key("resourceSpecification").start_object();
        crate::protocol_serde::shape_export_resource_specification::ser_export_resource_specification(&mut object_4, var_3)?;
        object_4.finish();
    }
    Ok(())
}