aws-sdk-mailmanager 1.89.0

AWS SDK for MailManager
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_start_archive_export_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::start_archive_export::StartArchiveExportInput,
) -> ::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);
    }
    if let Some(var_6) = &input.export_destination_configuration {
        encoder.str("ExportDestinationConfiguration");
        crate::protocol_serde::shape_export_destination_configuration::ser_export_destination_configuration(encoder, var_6)?;
    }
    if let Some(var_7) = &input.include_metadata {
        encoder.str("IncludeMetadata").boolean(*var_7);
    }
    encoder.end();
    Ok(())
}