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