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