vapi_client/models/
client_inbound_message_say.rs

1/*
2 * Vapi API
3 *
4 * API for building voice assistants
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ClientInboundMessageSay {
17    /// This is the type of the message. Send \"say\" message to make the assistant say something.
18    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
19    pub r#type: Option<Type>,
20    /// This is the content to say.
21    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
22    pub content: Option<String>,
23    /// This is the flag to end call after content is spoken.
24    #[serde(rename = "endCallAfterSpoken", skip_serializing_if = "Option::is_none")]
25    pub end_call_after_spoken: Option<bool>,
26}
27
28impl ClientInboundMessageSay {
29    pub fn new() -> ClientInboundMessageSay {
30        ClientInboundMessageSay {
31            r#type: None,
32            content: None,
33            end_call_after_spoken: None,
34        }
35    }
36}
37/// This is the type of the message. Send \"say\" message to make the assistant say something.
38#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
39pub enum Type {
40    #[serde(rename = "say")]
41    Say,
42}
43
44impl Default for Type {
45    fn default() -> Type {
46        Self::Say
47    }
48}