vapi_client/models/
response_output_text.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ResponseOutputText {
16 #[serde(rename = "annotations")]
18 pub annotations: Vec<serde_json::Value>,
19 #[serde(rename = "text")]
21 pub text: String,
22 #[serde(rename = "type")]
24 pub r#type: TypeTrue,
25}
26
27impl ResponseOutputText {
28 pub fn new(
29 annotations: Vec<serde_json::Value>,
30 text: String,
31 r#type: TypeTrue,
32 ) -> ResponseOutputText {
33 ResponseOutputText {
34 annotations,
35 text,
36 r#type,
37 }
38 }
39}
40#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
42pub enum TypeTrue {
43 #[serde(rename = "output_text")]
44 OutputText,
45}
46
47impl Default for TypeTrue {
48 fn default() -> TypeTrue {
49 Self::OutputText
50 }
51}