babelforce-manager-sdk 0.42.1

Rust SDK for the babelforce manager APIs — auth, user & agent management, call reporting, metrics, and task automations.
Documentation
/*
 * Manager API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 0.0.0-dev
 * Contact: support@babelforce.com
 * Generated by: https://openapi-generator.tech
 */

use crate::gen::manager::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ConversationSessionVariablesItemResponse {
    /// A flat key/value map of session variables shared between the conversation and its live call session.
    #[serde(rename = "item")]
    pub item: std::collections::HashMap<String, serde_json::Value>,
    /// Whether the Request was successful or not
    #[serde(rename = "success")]
    pub success: bool,
}

impl ConversationSessionVariablesItemResponse {
    pub fn new(
        item: std::collections::HashMap<String, serde_json::Value>,
        success: bool,
    ) -> ConversationSessionVariablesItemResponse {
        ConversationSessionVariablesItemResponse { item, success }
    }
}