vapi_client/models/
client_message_voice_input.rs1use serde::{Deserialize, Serialize};
12use utoipa::ToSchema;
13
14
15use crate::models;
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, ToSchema)]
18pub struct ClientMessageVoiceInput {
19    #[serde(rename = "type")]
21    pub r#type: Type,
22    #[serde(rename = "input")]
24    pub input: String,
25}
26
27impl ClientMessageVoiceInput {
28    pub fn new(r#type: Type, input: String) -> ClientMessageVoiceInput {
29        ClientMessageVoiceInput { r#type, input }
30    }
31}
32#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, ToSchema)]
34pub enum Type {
35    #[serde(rename = "voice-input")]
36    VoiceInput,
37}
38
39impl Default for Type {
40    fn default() -> Type {
41        Self::VoiceInput
42    }
43}