babelforce-manager-sdk 0.42.3

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 AgenticApplicationUpdateBody {
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "friendlyName", skip_serializing_if = "Option::is_none")]
    pub friendly_name: Option<String>,
    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
    pub enabled: Option<bool>,
    /// A List of Tags describing an Object
    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
    pub tags: Option<Vec<String>>,
    #[serde(rename = "routings", skip_serializing_if = "Option::is_none")]
    pub routings: Option<Vec<models::ApplicationRouting>>,
    #[serde(rename = "settings", skip_serializing_if = "Option::is_none")]
    pub settings: Option<Box<models::AgenticApplicationSettings>>,
    #[serde(rename = "module")]
    pub module: Module,
}

impl AgenticApplicationUpdateBody {
    pub fn new(module: Module) -> AgenticApplicationUpdateBody {
        AgenticApplicationUpdateBody {
            name: None,
            friendly_name: None,
            enabled: None,
            tags: None,
            routings: None,
            settings: None,
            module,
        }
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Module {
    #[serde(rename = "agentic")]
    Agentic,
}

impl Default for Module {
    fn default() -> Module {
        Self::Agentic
    }
}