babelforce-manager-sdk 0.44.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};

/// DashboardUpdateBody : Request-Body to update a Dashboard (partial update)
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DashboardUpdateBody {
    /// The name of the Dashboard (unique per account, max 48 chars)
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The Dashboard URL (max 255 chars)
    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}

impl DashboardUpdateBody {
    /// Request-Body to update a Dashboard (partial update)
    pub fn new() -> DashboardUpdateBody {
        DashboardUpdateBody {
            name: None,
            url: None,
        }
    }
}