vapi_client/models/
monitor_plan.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 MonitorPlan {
16    /// 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
17    #[serde(rename = "listenEnabled", skip_serializing_if = "Option::is_none")]
18    pub listen_enabled: Option<bool>,
19    /// 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
20    #[serde(rename = "controlEnabled", skip_serializing_if = "Option::is_none")]
21    pub control_enabled: Option<bool>,
22}
23
24impl MonitorPlan {
25    pub fn new() -> MonitorPlan {
26        MonitorPlan {
27            listen_enabled: None,
28            control_enabled: None,
29        }
30    }
31}
32