/*
* 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};
/// CustomEventRequest : Request body to create a custom event.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CustomEventRequest {
/// The custom event's name (combined with the `custom` type as its code).
#[serde(rename = "name")]
pub name: String,
/// A List of Tags describing an Object
#[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<String>>,
}
impl CustomEventRequest {
/// Request body to create a custom event.
pub fn new(name: String) -> CustomEventRequest {
CustomEventRequest { name, tags: None }
}
}