1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* 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,
}
}
}