vapi_client/models/monitor.rs
1/*
2 * Vapi API
3 *
4 * API for building voice assistants
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Monitor {
17 /// This is the URL where the assistant's calls can be listened to in real-time. To enable, set `assistant.monitorPlan.listenEnabled` to `true`.
18 #[serde(rename = "listenUrl", skip_serializing_if = "Option::is_none")]
19 pub listen_url: Option<String>,
20 /// This is the URL where the assistant's calls can be controlled in real-time. To enable, set `assistant.monitorPlan.controlEnabled` to `true`.
21 #[serde(rename = "controlUrl", skip_serializing_if = "Option::is_none")]
22 pub control_url: Option<String>,
23}
24
25impl Monitor {
26 pub fn new() -> Monitor {
27 Monitor {
28 listen_url: None,
29 control_url: None,
30 }
31 }
32}