1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_clone_receipt_rule_set_input_input(
    input: &crate::operation::clone_receipt_rule_set::CloneReceiptRuleSetInput,
) -> Result<aws_smithy_http::body::SdkBody, aws_smithy_http::operation::error::SerializationError> {
    let mut out = String::new();
    #[allow(unused_mut)]
    let mut writer =
        aws_smithy_query::QueryWriter::new(&mut out, "CloneReceiptRuleSet", "2010-12-01");
    #[allow(unused_mut)]
    let mut scope_1 = writer.prefix("RuleSetName");
    if let Some(var_2) = &input.rule_set_name {
        scope_1.string(var_2);
    }
    #[allow(unused_mut)]
    let mut scope_3 = writer.prefix("OriginalRuleSetName");
    if let Some(var_4) = &input.original_rule_set_name {
        scope_3.string(var_4);
    }
    writer.finish();
    Ok(aws_smithy_http::body::SdkBody::from(out))
}