vapi_client/models/
client_message_user_interrupted.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 ClientMessageUserInterrupted {
17    /// This is the type of the message. \"user-interrupted\" is sent when the user interrupts the assistant.
18    #[serde(rename = "type")]
19    pub r#type: Type,
20}
21
22impl ClientMessageUserInterrupted {
23    pub fn new(r#type: Type) -> ClientMessageUserInterrupted {
24        ClientMessageUserInterrupted { r#type }
25    }
26}
27/// This is the type of the message. \"user-interrupted\" is sent when the user interrupts the assistant.
28#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
29pub enum Type {
30    #[serde(rename = "user-interrupted")]
31    UserInterrupted,
32}
33
34impl Default for Type {
35    fn default() -> Type {
36        Self::UserInterrupted
37    }
38}