/*
* 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};
/// AgentPresenceWriteBody : A busy presence to create or update (available=true is rejected with 501)
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AgentPresenceWriteBody {
#[serde(rename = "label")]
pub label: String,
#[serde(rename = "available", skip_serializing_if = "Option::is_none")]
pub available: Option<bool>,
}
impl AgentPresenceWriteBody {
/// A busy presence to create or update (available=true is rejected with 501)
pub fn new(label: String) -> AgentPresenceWriteBody {
AgentPresenceWriteBody {
label,
available: None,
}
}
}