aws-sdk-lexruntimev2 1.92.0

AWS SDK for Amazon Lex Runtime V2
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_audio_input_event(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::types::AudioInputEvent,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    if let Some(var_1) = &input.audio_chunk {
        object.key("audioChunk").string_unchecked(&::aws_smithy_types::base64::encode(var_1));
    }
    {
        object.key("contentType").string(input.content_type.as_str());
    }
    if let Some(var_2) = &input.event_id {
        object.key("eventId").string(var_2.as_str());
    }
    if input.client_timestamp_millis != 0 {
        object.key("clientTimestampMillis").number(
            #[allow(clippy::useless_conversion)]
            ::aws_smithy_types::Number::NegInt((input.client_timestamp_millis).into()),
        );
    }
    Ok(())
}