aws-sdk-lexmodelsv2 1.110.0

AWS SDK for Amazon Lex Model Building V2
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_start_test_execution_input_input(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::operation::start_test_execution::StartTestExecutionInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.api_mode {
        object.key("apiMode").string(var_1.as_str());
    }
    if let Some(var_2) = &input.target {
        #[allow(unused_mut)]
        let mut object_3 = object.key("target").start_object();
        crate::protocol_serde::shape_test_execution_target::ser_test_execution_target(&mut object_3, var_2)?;
        object_3.finish();
    }
    if let Some(var_4) = &input.test_execution_modality {
        object.key("testExecutionModality").string(var_4.as_str());
    }
    Ok(())
}