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 ID that will be used for the call. To use a transient assistant, use `assistant` instead. To start a call with: - Assistant, use `assistantId` or `assistant` - Squad, use `squadId` or `squad` - Workflow, use `workflowId` or `workflow`
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. To start a call with: - Assistant, use `assistant` - Squad, use `squad` - Workflow, use `workflow`
20 #[serde(rename = "assistant", skip_serializing_if = "Option::is_none")]
21 pub assistant: Option<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<models::AssistantOverrides>,
25 /// This is the squad that will be used for the call. To use a transient squad, use `squad` instead. To start a call with: - Assistant, use `assistant` or `assistantId` - Squad, use `squad` or `squadId` - Workflow, use `workflow` or `workflowId`
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. To start a call with: - Assistant, use `assistant` or `assistantId` - Squad, use `squad` or `squadId` - Workflow, use `workflow` or `workflowId`
29 #[serde(rename = "squad", skip_serializing_if = "Option::is_none")]
30 pub squad: Option<models::CreateSquadDto>,
31 /// This is the workflow that will be used for the call. To use a transient workflow, use `workflow` instead. To start a call with: - Assistant, use `assistant` or `assistantId` - Squad, use `squad` or `squadId` - Workflow, use `workflow` or `workflowId`
32 #[serde(rename = "workflowId", skip_serializing_if = "Option::is_none")]
33 pub workflow_id: Option<String>,
34 /// This is a workflow that will be used for the call. To use an existing workflow, use `workflowId` instead. To start a call with: - Assistant, use `assistant` or `assistantId` - Squad, use `squad` or `squadId` - Workflow, use `workflow` or `workflowId`
35 #[serde(rename = "workflow", skip_serializing_if = "Option::is_none")]
36 pub workflow: Option<models::CreateWorkflowDto>,
37 /// These are the overrides for the `workflow` or `workflowId`'s settings and template variables.
38 #[serde(rename = "workflowOverrides", skip_serializing_if = "Option::is_none")]
39 pub workflow_overrides: Option<models::WorkflowOverrides>,
40}
41
42impl CreateWebCallDto {
43 pub fn new() -> CreateWebCallDto {
44 CreateWebCallDto {
45 assistant_id: None,
46 assistant: None,
47 assistant_overrides: None,
48 squad_id: None,
49 squad: None,
50 workflow_id: None,
51 workflow: None,
52 workflow_overrides: None,
53 }
54 }
55}