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