vapi_client/models/
response_output_text.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 ResponseOutputText {
16    /// Annotations in the text output
17    #[serde(rename = "annotations")]
18    pub annotations: Vec<serde_json::Value>,
19    /// The text output from the model
20    #[serde(rename = "text")]
21    pub text: String,
22    /// The type of the output text
23    #[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/// The type of the output text
41#[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}