aws_sdk_connect/protocol_serde/shape_chat_message.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub fn ser_chat_message(
3 object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
4 input: &crate::types::ChatMessage,
5) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
6 {
7 object.key("ContentType").string(input.content_type.as_str());
8 }
9 {
10 object.key("Content").string(input.content.as_str());
11 }
12 Ok(())
13}