pub fn ser_start_archive_search_input_input(
encoder: &mut ::aws_smithy_cbor::Encoder,
#[allow(unused)] input: &crate::operation::start_archive_search::StartArchiveSearchInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
encoder.begin_map();
if let Some(var_1) = &input.archive_id {
encoder.str("ArchiveId").str(var_1.as_str());
}
if let Some(var_2) = &input.filters {
encoder.str("Filters");
crate::protocol_serde::shape_archive_filters::ser_archive_filters(encoder, var_2)?;
}
if let Some(var_3) = &input.from_timestamp {
encoder.str("FromTimestamp").timestamp(var_3);
}
if let Some(var_4) = &input.to_timestamp {
encoder.str("ToTimestamp").timestamp(var_4);
}
if let Some(var_5) = &input.max_results {
encoder.str("MaxResults").integer(*var_5);
}
encoder.end();
Ok(())
}