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 SettingsTelephonyAgentWrapupRequest {
    #[serde(rename = "scope")]
    pub scope: Scope,
    #[serde(rename = "key")]
    pub key: Key,
    #[serde(rename = "data")]
    pub data: Box<models::SettingsTelephonyAgentWrapupRequestData>,
}

impl SettingsTelephonyAgentWrapupRequest {
    pub fn new(
        scope: Scope,
        key: Key,
        data: models::SettingsTelephonyAgentWrapupRequestData,
    ) -> SettingsTelephonyAgentWrapupRequest {
        SettingsTelephonyAgentWrapupRequest {
            scope,
            key,
            data: Box::new(data),
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Scope {
    #[serde(rename = "telephony")]
    Telephony,
}

impl Default for Scope {
    fn default() -> Scope {
        Self::Telephony
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Key {
    #[serde(rename = "agent.wrapup")]
    AgentWrapup,
}

impl Default for Key {
    fn default() -> Key {
        Self::AgentWrapup
    }
}