vapi_client/models/
monitor.rs

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