vapi_client/models/
update_test_suite_test_voice_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 UpdateTestSuiteTestVoiceDto {
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 name of the test.
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    /// This is the script to be used for the voice test.
23    #[serde(rename = "script", skip_serializing_if = "Option::is_none")]
24    pub script: Option<String>,
25    /// This is the number of attempts allowed for the test.
26    #[serde(rename = "numAttempts", skip_serializing_if = "Option::is_none")]
27    pub num_attempts: Option<f64>,
28}
29
30impl UpdateTestSuiteTestVoiceDto {
31    pub fn new() -> UpdateTestSuiteTestVoiceDto {
32        UpdateTestSuiteTestVoiceDto {
33            scorers: None,
34            name: None,
35            script: None,
36            num_attempts: None,
37        }
38    }
39}
40