/*
* Vapi API
*
* Voice AI for developers.
*
* The version of the OpenAPI document: 1.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Monitor {
/// This is the URL where the assistant's calls can be listened to in real-time. To enable, set `assistant.monitorPlan.listenEnabled` to `true`.
#[serde(rename = "listenUrl", skip_serializing_if = "Option::is_none")]
pub listen_url: Option<String>,
/// This is the URL where the assistant's calls can be controlled in real-time. To enable, set `assistant.monitorPlan.controlEnabled` to `true`.
#[serde(rename = "controlUrl", skip_serializing_if = "Option::is_none")]
pub control_url: Option<String>,
}
impl Monitor {
pub fn new() -> Monitor {
Monitor {
listen_url: None,
control_url: None,
}
}
}