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};
12use utoipa::ToSchema;
13
14
15use crate::models;
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, ToSchema)]
18pub struct Monitor {
19    /// This is the URL where the assistant's calls can be listened to in real-time. To enable, set `assistant.monitorPlan.listenEnabled` to `true`.
20    #[serde(rename = "listenUrl", skip_serializing_if = "Option::is_none")]
21    pub listen_url: Option<String>,
22    /// This is the URL where the assistant's calls can be controlled in real-time. To enable, set `assistant.monitorPlan.controlEnabled` to `true`.
23    #[serde(rename = "controlUrl", skip_serializing_if = "Option::is_none")]
24    pub control_url: Option<String>,
25}
26
27impl Monitor {
28    pub fn new() -> Monitor {
29        Monitor {
30            listen_url: None,
31            control_url: None,
32        }
33    }
34}