/*
* 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};
/// DashboardCreateBody : Request-Body to create a Dashboard
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DashboardCreateBody {
/// The name of the Dashboard (unique per account, max 48 chars)
#[serde(rename = "name")]
pub name: String,
/// The Dashboard URL (max 255 chars)
#[serde(rename = "url")]
pub url: String,
}
impl DashboardCreateBody {
/// Request-Body to create a Dashboard
pub fn new(name: String, url: String) -> DashboardCreateBody {
DashboardCreateBody { name, url }
}
}