aws-sdk-iotthingsgraph 1.97.0

AWS SDK for AWS IoT Things Graph
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_associate_entity_to_thing_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::associate_entity_to_thing::AssociateEntityToThingInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.thing_name {
        object.key("thingName").string(var_1.as_str());
    }
    if let Some(var_2) = &input.entity_id {
        object.key("entityId").string(var_2.as_str());
    }
    if let Some(var_3) = &input.namespace_version {
        object.key("namespaceVersion").number(
            #[allow(clippy::useless_conversion)]
            ::aws_smithy_types::Number::NegInt((*var_3).into()),
        );
    }
    Ok(())
}