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