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

/// QueuedCallBridged : Present only when the call is bridged to an agent
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct QueuedCallBridged {
    /// The unique Identifier (UUID) of the object
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<uuid::Uuid>,
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "number", skip_serializing_if = "Option::is_none")]
    pub number: Option<String>,
    /// The unique Identifier (UUID) of the object
    #[serde(rename = "queueId", skip_serializing_if = "Option::is_none")]
    pub queue_id: Option<uuid::Uuid>,
    #[serde(rename = "queueName", skip_serializing_if = "Option::is_none")]
    pub queue_name: Option<String>,
    #[serde(rename = "agent", skip_serializing_if = "Option::is_none")]
    pub agent: Option<Box<models::QueuedCallBridgedAgent>>,
    #[serde(rename = "queue", skip_serializing_if = "Option::is_none")]
    pub queue: Option<Box<models::QueuedCallBridgedQueue>>,
}

impl QueuedCallBridged {
    /// Present only when the call is bridged to an agent
    pub fn new() -> QueuedCallBridged {
        QueuedCallBridged {
            id: None,
            name: None,
            number: None,
            queue_id: None,
            queue_name: None,
            agent: None,
            queue: None,
        }
    }
}