vapi_client/models/
create_assistant_dto_hooks_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 CreateAssistantDtoHooksInner {
17    AssistantHookCallEnding(models::AssistantHookCallEnding),
18    AssistantHookAssistantSpeechInterrupted(models::AssistantHookAssistantSpeechInterrupted),
19    AssistantHookCustomerSpeechInterrupted(models::AssistantHookCustomerSpeechInterrupted),
20}
21
22impl Default for CreateAssistantDtoHooksInner {
23    fn default() -> Self {
24        Self::AssistantHookCallEnding(Default::default())
25    }
26}
27/// This is the event that triggers this hook
28#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
29pub enum OnTrue {
30    #[serde(rename = "customer.speech.interrupted")]
31    CustomerPeriodSpeechPeriodInterrupted,
32}
33
34impl Default for OnTrue {
35    fn default() -> OnTrue {
36        Self::CustomerPeriodSpeechPeriodInterrupted
37    }
38}