babelforce-manager-sdk 0.42.1

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct IntegrationAvailableCustom {
    #[serde(rename = "type")]
    pub r#type: models::IntegrationType,
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "provider")]
    pub provider: models::IntegrationProvider,
    /// Integration provider label
    #[serde(rename = "label")]
    pub label: String,
    /// List of integration provider capabilities
    #[serde(rename = "capabilities")]
    pub capabilities: Vec<models::IntegrationCapability>,
    #[serde(rename = "pagination")]
    pub pagination: models::IntegrationPaginationType,
}

impl IntegrationAvailableCustom {
    pub fn new(
        r#type: models::IntegrationType,
        name: String,
        provider: models::IntegrationProvider,
        label: String,
        capabilities: Vec<models::IntegrationCapability>,
        pagination: models::IntegrationPaginationType,
    ) -> IntegrationAvailableCustom {
        IntegrationAvailableCustom {
            r#type,
            name,
            provider,
            label,
            capabilities,
            pagination,
        }
    }
}