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

/// LeadList : A lead-list — a named collection of leads dialled by a campaign.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LeadList {
    /// The unique Identifier (UUID) of the object
    #[serde(rename = "id")]
    pub id: uuid::Uuid,
    /// The lead-list's name (unique per customer).
    #[serde(rename = "name")]
    pub name: String,
    /// The unique Identifier (UUID) of the object
    #[serde(rename = "campaignId", skip_serializing_if = "Option::is_none")]
    pub campaign_id: Option<uuid::Uuid>,
    /// Number of leads in the list.
    #[serde(rename = "count", skip_serializing_if = "Option::is_none")]
    pub count: Option<i32>,
}

impl LeadList {
    /// A lead-list — a named collection of leads dialled by a campaign.
    pub fn new(id: uuid::Uuid, name: String) -> LeadList {
        LeadList {
            id,
            name,
            campaign_id: None,
            count: None,
        }
    }
}