babelforce-manager-sdk 0.46.0

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};

/// Queue : An ACD call queue — groups incoming calls and distributes them to the agents chosen by the queue's selections.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Queue {
    /// The unique Identifier (UUID) of the object
    #[serde(rename = "id")]
    pub id: uuid::Uuid,
    /// The queue's name.
    #[serde(rename = "name")]
    pub name: String,
    /// How many agents are dialled simultaneously per call.
    #[serde(rename = "maxDialCount", skip_serializing_if = "Option::is_none")]
    pub max_dial_count: Option<i32>,
    /// Post-call wrap-up time granted to an agent, in seconds.
    #[serde(rename = "wrapUpTime", skip_serializing_if = "Option::is_none")]
    pub wrap_up_time: Option<i32>,
    /// How long an agent's device rings before moving on, in seconds.
    #[serde(rename = "defaultRingTimeout", skip_serializing_if = "Option::is_none")]
    pub default_ring_timeout: Option<i32>,
    /// Maximum number of calls allowed to wait in the queue.
    #[serde(rename = "maxSize", skip_serializing_if = "Option::is_none")]
    pub max_size: Option<i32>,
    /// A List of Tags describing an Object
    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
    pub tags: Option<Vec<String>>,
}

impl Queue {
    /// An ACD call queue — groups incoming calls and distributes them to the agents chosen by the queue's selections.
    pub fn new(id: uuid::Uuid, name: String) -> Queue {
        Queue {
            id,
            name,
            max_dial_count: None,
            wrap_up_time: None,
            default_ring_timeout: None,
            max_size: None,
            tags: None,
        }
    }
}