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