/*
* 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};
/// DialerBehaviour : A named dialer-behaviour profile controlling how an outbound campaign places calls (its dial method and pacing settings).
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DialerBehaviour {
/// The unique Identifier (UUID) of the object
#[serde(rename = "id")]
pub id: uuid::Uuid,
/// The profile's name (unique per customer).
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "dialMethod", skip_serializing_if = "Option::is_none")]
pub dial_method: Option<models::DialMethod>,
}
impl DialerBehaviour {
/// A named dialer-behaviour profile controlling how an outbound campaign places calls (its dial method and pacing settings).
pub fn new(id: uuid::Uuid, name: String) -> DialerBehaviour {
DialerBehaviour {
id,
name,
dial_method: None,
}
}
}