vapi_client/models/
client_inbound_message_say.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 ClientInboundMessageSay {
16    /// This is the type of the message. Send \"say\" message to make the assistant say something.
17    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
18    pub r#type: Option<Type>,
19    /// This is the content to say.
20    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
21    pub content: Option<String>,
22    /// This is the flag to end call after content is spoken.
23    #[serde(rename = "endCallAfterSpoken", skip_serializing_if = "Option::is_none")]
24    pub end_call_after_spoken: Option<bool>,
25}
26
27impl ClientInboundMessageSay {
28    pub fn new() -> ClientInboundMessageSay {
29        ClientInboundMessageSay {
30            r#type: None,
31            content: None,
32            end_call_after_spoken: None,
33        }
34    }
35}
36/// This is the type of the message. Send \"say\" message to make the assistant say something.
37#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
38pub enum Type {
39    #[serde(rename = "say")]
40    Say,
41}
42
43impl Default for Type {
44    fn default() -> Type {
45        Self::Say
46    }
47}
48