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};
12use utoipa::OpenApi;
13
14
15use crate::models;
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, OpenApi)]
18pub struct MonitorPlan {
19 /// 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
20 #[serde(rename = "listenEnabled", skip_serializing_if = "Option::is_none")]
21 pub listen_enabled: Option<bool>,
22 /// 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
23 #[serde(rename = "controlEnabled", skip_serializing_if = "Option::is_none")]
24 pub control_enabled: Option<bool>,
25}
26
27impl MonitorPlan {
28 pub fn new() -> MonitorPlan {
29 MonitorPlan {
30 listen_enabled: None,
31 control_enabled: None,
32 }
33 }
34}