babelforce-manager-sdk 0.42.3

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 TaskSelectionLegacySettings {
    #[serde(rename = "line_status", skip_serializing_if = "Option::is_none")]
    pub line_status: Option<String>,
    #[serde(rename = "reachable_by_phone", skip_serializing_if = "Option::is_none")]
    pub reachable_by_phone: Option<bool>,
    #[serde(rename = "max", skip_serializing_if = "Option::is_none")]
    pub max: Option<i32>,
    #[serde(rename = "call_id", skip_serializing_if = "Option::is_none")]
    pub call_id: Option<String>,
    #[serde(rename = "exclusive", skip_serializing_if = "Option::is_none")]
    pub exclusive: Option<bool>,
}

impl TaskSelectionLegacySettings {
    pub fn new() -> TaskSelectionLegacySettings {
        TaskSelectionLegacySettings {
            line_status: None,
            reachable_by_phone: None,
            max: None,
            call_id: None,
            exclusive: None,
        }
    }
}