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