aws-sdk-controltower 1.108.0

AWS SDK for AWS Control Tower
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_list_enabled_controls_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::list_enabled_controls::ListEnabledControlsInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.filter {
        #[allow(unused_mut)]
        let mut object_2 = object.key("filter").start_object();
        crate::protocol_serde::shape_enabled_control_filter::ser_enabled_control_filter(&mut object_2, var_1)?;
        object_2.finish();
    }
    if let Some(var_3) = &input.include_children {
        object.key("includeChildren").boolean(*var_3);
    }
    if let Some(var_4) = &input.max_results {
        object.key("maxResults").number(
            #[allow(clippy::useless_conversion)]
            ::aws_smithy_types::Number::NegInt((*var_4).into()),
        );
    }
    if let Some(var_5) = &input.next_token {
        object.key("nextToken").string(var_5.as_str());
    }
    if let Some(var_6) = &input.target_identifier {
        object.key("targetIdentifier").string(var_6.as_str());
    }
    Ok(())
}