aws-sdk-cloudwatch 1.109.1

AWS SDK for Amazon CloudWatch
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_get_insight_rule_report_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::get_insight_rule_report::GetInsightRuleReportInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.rule_name {
        encoder.str("RuleName").str(var_1.as_str());
    }
    if let Some(var_2) = &input.start_time {
        encoder.str("StartTime").timestamp(var_2);
    }
    if let Some(var_3) = &input.end_time {
        encoder.str("EndTime").timestamp(var_3);
    }
    if let Some(var_4) = &input.period {
        encoder.str("Period").integer(*var_4);
    }
    if let Some(var_5) = &input.max_contributor_count {
        encoder.str("MaxContributorCount").integer(*var_5);
    }
    if let Some(var_6) = &input.metrics {
        encoder.str("Metrics");
        encoder.array((*var_6).len());
        for item_7 in var_6 {
            {
                encoder.str(item_7.as_str());
            }
        }
    }
    if let Some(var_8) = &input.order_by {
        encoder.str("OrderBy").str(var_8.as_str());
    }
    encoder.end();
    Ok(())
}