fn add_info_to_message(data: &ConversationInfo, mut msg: Message, interaction_order: i32) -> Value {
    let payload = msg.message_to_json();

    let mut map_msg: Map<String, Value> = Map::new();
    map_msg.insert("payload".to_owned(), payload);
    map_msg.insert("interaction_order".to_owned(), json!(interaction_order));
    map_msg.insert("conversation_id".to_owned(), json!(data.conversation_id));
    map_msg.insert("direction".to_owned(), json!("SEND"));

    Value::Object(map_msg)
}
/**
 * Update ConversationInfo data with current information about the request.
 */
Update ConversationInfo data with current information about the request.
Update ConversationInfo data with current information about the request .
fn add_info_to_message(data: &ConversationInfo, mut msg: Message, interaction_order: i32) -> Value {
    let payload = msg.message_to_json();
    let mut map_msg: Map<String, Value> = Map::new();
    map_msg.insert("payload".to_owned(), payload);
    map_msg.insert("interaction_order".to_owned(), json!(interaction_order));
    map_msg.insert("conversation_id".to_owned(), json!(data.conversation_id));
    map_msg.insert("direction".to_owned(), json!("SEND"));
    Value::Object(map_msg)
}
fn add_info_to_message ( data : & ConversationInfo , mut msg : Message , interaction_order : i32 ) -> Value { let payload = msg . message_to_json ( ) ; let mut map_msg : Map < String , Value > = Map :: new ( ) ; map_msg . insert ( " " . to_owned ( ) , payload ) ; map_msg . insert ( " " . to_owned ( ) , json ! ( interaction_order ) ) ; map_msg . insert ( " " . to_owned ( ) , json ! ( data conversation_id ) ) ; map_msg . insert ( " " . to_owned ( ) , json ! ( " " ) ) ; Value :: Object ( map_msg ) }
Update ConversationInfo data with current information about the request.
Update ConversationInfo data with current information about the request .
data
&ConversationInfo
msg
Message
interaction_order
i32
data
&ConversationInfo
msg
Message
interaction_order
i32