aws-sdk-bedrockagentcore 1.45.0

AWS SDK for Amazon Bedrock AgentCore
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_mouse_click_arguments(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::types::MouseClickArguments,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    {
        object.key("x").number(
            #[allow(clippy::useless_conversion)]
            ::aws_smithy_types::Number::NegInt((input.x).into()),
        );
    }
    {
        object.key("y").number(
            #[allow(clippy::useless_conversion)]
            ::aws_smithy_types::Number::NegInt((input.y).into()),
        );
    }
    if let Some(var_1) = &input.button {
        object.key("button").string(var_1.as_str());
    }
    if let Some(var_2) = &input.click_count {
        object.key("clickCount").number(
            #[allow(clippy::useless_conversion)]
            ::aws_smithy_types::Number::NegInt((*var_2).into()),
        );
    }
    Ok(())
}