babelforce-manager-sdk 0.44.0

Rust SDK for the babelforce manager APIs — auth, user & agent management, call reporting, metrics, and task automations.
Documentation
/*
 * task-automation API
 *
 * task-automation engine to automate and customize web based integration processes
 *
 * The version of the OpenAPI document: 3.63.10
 * Contact: support@babelforce.com
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TaskSelectionSettings {
    /// True = agent selection is enabled False = No agent selection will be attempted
    #[serde(rename = "enable", skip_serializing_if = "Option::is_none")]
    pub enable: Option<bool>,
    /// True = the selected agent has to accept the task before it will be assigned to him. False = the agent will get the task forceably assigned
    #[serde(rename = "auto_accept", skip_serializing_if = "Option::is_none")]
    pub auto_accept: Option<bool>,
    /// 0 = lowest priority ... 256 = higher priority ... max integer = highest priority
    #[serde(rename = "priority", skip_serializing_if = "Option::is_none")]
    pub priority: Option<i32>,
    /// A time in milliseconds after task scheduling, if it is reached the task will be canceled
    #[serde(rename = "expire_in", skip_serializing_if = "Option::is_none")]
    pub expire_in: Option<i64>,
    /// Time in milliseconds the agent has to accept a task before it is auto rejected.
    #[serde(rename = "accept_timeout", skip_serializing_if = "Option::is_none")]
    pub accept_timeout: Option<i64>,
    /// Time in milliseconds the agent has to complete a task before it is auto canceled.
    #[serde(rename = "complete_timeout", skip_serializing_if = "Option::is_none")]
    pub complete_timeout: Option<i64>,
    /// Time in milliseconds the task is delayed after rescheduling.
    #[serde(rename = "reschedule_delay", skip_serializing_if = "Option::is_none")]
    pub reschedule_delay: Option<i64>,
    #[serde(rename = "selection_engine", skip_serializing_if = "Option::is_none")]
    pub selection_engine: Option<models::SelectionEngine>,
    #[serde(rename = "legacy_settings", skip_serializing_if = "Option::is_none")]
    pub legacy_settings: Option<Box<models::TaskSelectionLegacySettings>>,
    #[serde(rename = "acd_settings", skip_serializing_if = "Option::is_none")]
    pub acd_settings: Option<Box<models::TaskSelectionAcdSettings>>,
}

impl TaskSelectionSettings {
    pub fn new() -> TaskSelectionSettings {
        TaskSelectionSettings {
            enable: None,
            auto_accept: None,
            priority: None,
            expire_in: None,
            accept_timeout: None,
            complete_timeout: None,
            reschedule_delay: None,
            selection_engine: None,
            legacy_settings: None,
            acd_settings: None,
        }
    }
}