vapi_client/models/
create_web_call_dto.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 CreateWebCallDto {
17    /// This is the assistant that will be used for the call. To use a transient assistant, use `assistant` instead.
18    #[serde(rename = "assistantId", skip_serializing_if = "Option::is_none")]
19    pub assistant_id: Option<String>,
20    /// This is the assistant that will be used for the call. To use an existing assistant, use `assistantId` instead.
21    #[serde(rename = "assistant", skip_serializing_if = "Option::is_none")]
22    pub assistant: Option<models::CreateAssistantDto>,
23    /// These are the overrides for the `assistant` or `assistantId`'s settings and template variables.
24    #[serde(rename = "assistantOverrides", skip_serializing_if = "Option::is_none")]
25    pub assistant_overrides: Option<models::AssistantOverrides>,
26    /// This is the squad that will be used for the call. To use a transient squad, use `squad` instead.
27    #[serde(rename = "squadId", skip_serializing_if = "Option::is_none")]
28    pub squad_id: Option<String>,
29    /// This is a squad that will be used for the call. To use an existing squad, use `squadId` instead.
30    #[serde(rename = "squad", skip_serializing_if = "Option::is_none")]
31    pub squad: Option<models::CreateSquadDto>,
32}
33
34impl CreateWebCallDto {
35    pub fn new() -> CreateWebCallDto {
36        CreateWebCallDto {
37            assistant_id: None,
38            assistant: None,
39            assistant_overrides: None,
40            squad_id: None,
41            squad: None,
42        }
43    }
44}