vapi_client/models/
assistant_hook_assistant_speech_interrupted_do_inner.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, Debug, PartialEq, Serialize, Deserialize)]
15#[serde(untagged)]
16pub enum AssistantHookAssistantSpeechInterruptedDoInner {
17    TransferAssistantHookAction(models::TransferAssistantHookAction),
18    FunctionCallAssistantHookAction(models::FunctionCallAssistantHookAction),
19    SayAssistantHookAction(models::SayAssistantHookAction),
20}
21
22impl Default for AssistantHookAssistantSpeechInterruptedDoInner {
23    fn default() -> Self {
24        Self::TransferAssistantHookAction(Default::default())
25    }
26}
27/// This is the type of action - must be \"transfer\"
28#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
29pub enum TypeTrue {
30    #[serde(rename = "transfer")]
31    Transfer,
32    #[serde(rename = "function")]
33    Function,
34    #[serde(rename = "say")]
35    Say,
36}
37
38impl Default for TypeTrue {
39    fn default() -> TypeTrue {
40        Self::Transfer
41    }
42}