babelforce-manager-sdk 0.42.1

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 AccountSelectionConfiguration {
    /// 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>,
    /// 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 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>,
}

impl AccountSelectionConfiguration {
    pub fn new() -> AccountSelectionConfiguration {
        AccountSelectionConfiguration {
            accept_timeout: None,
            complete_timeout: None,
            expire_in: None,
            reschedule_delay: None,
            selection_engine: None,
        }
    }
}