vapi_client/models/
monitor_plan.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 MonitorPlan {
17    /// This determines whether the assistant's calls allow live listening. Defaults to true.  Fetch `call.monitor.listenUrl` to get the live listening URL.  @default true
18    #[serde(rename = "listenEnabled", skip_serializing_if = "Option::is_none")]
19    pub listen_enabled: Option<bool>,
20    /// This determines whether the assistant's calls allow live control. Defaults to true.  Fetch `call.monitor.controlUrl` to get the live control URL.  To use, send any control message via a POST request to `call.monitor.controlUrl`. Here are the types of controls supported: https://docs.vapi.ai/api-reference/messages/client-inbound-message  @default true
21    #[serde(rename = "controlEnabled", skip_serializing_if = "Option::is_none")]
22    pub control_enabled: Option<bool>,
23}
24
25impl MonitorPlan {
26    pub fn new() -> MonitorPlan {
27        MonitorPlan {
28            listen_enabled: None,
29            control_enabled: None,
30        }
31    }
32}