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