vapi_client/models/
squad_member_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 SquadMemberDto {
16    /// This is the assistant that will be used for the call. To use a transient assistant, use `assistant` instead.
17    #[serde(rename = "assistantId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub assistant_id: Option<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<models::CreateAssistantDto>,
22    /// This can be used to override the assistant's settings and provide values for it's template variables.
23    #[serde(rename = "assistantOverrides", skip_serializing_if = "Option::is_none")]
24    pub assistant_overrides: Option<models::AssistantOverrides>,
25    /// These are the others assistants that this assistant can transfer to.  If the assistant already has transfer call tool, these destinations are just appended to existing ones.
26    #[serde(rename = "assistantDestinations", skip_serializing_if = "Option::is_none")]
27    pub assistant_destinations: Option<Vec<models::TransferDestinationAssistant>>,
28}
29
30impl SquadMemberDto {
31    pub fn new() -> SquadMemberDto {
32        SquadMemberDto {
33            assistant_id: None,
34            assistant: None,
35            assistant_overrides: None,
36            assistant_destinations: None,
37        }
38    }
39}
40