vapi_client/models/
update_test_suite_test_chat_dto.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 UpdateTestSuiteTestChatDto {
16    /// These are the scorers used to evaluate the test.
17    #[serde(rename = "scorers", skip_serializing_if = "Option::is_none")]
18    pub scorers: Option<Vec<models::TestSuiteTestVoiceScorersInner>>,
19    /// This is the type of the test, which must be chat.
20    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
21    pub r#type: Option<TypeTrue>,
22    /// This is the name of the test.
23    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
24    pub name: Option<String>,
25    /// This is the script to be used for the chat test.
26    #[serde(rename = "script", skip_serializing_if = "Option::is_none")]
27    pub script: Option<String>,
28    /// This is the number of attempts allowed for the test.
29    #[serde(rename = "numAttempts", skip_serializing_if = "Option::is_none")]
30    pub num_attempts: Option<f64>,
31}
32
33impl UpdateTestSuiteTestChatDto {
34    pub fn new() -> UpdateTestSuiteTestChatDto {
35        UpdateTestSuiteTestChatDto {
36            scorers: None,
37            r#type: None,
38            name: None,
39            script: None,
40            num_attempts: None,
41        }
42    }
43}
44/// This is the type of the test, which must be chat.
45#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
46pub enum TypeTrue {
47    #[serde(rename = "chat")]
48    Chat,
49}
50
51impl Default for TypeTrue {
52    fn default() -> TypeTrue {
53        Self::Chat
54    }
55}