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