vapi_client/models/
update_test_suite_test_voice_dto.rs

1/*
2 * Vapi API
3 *
4 * API for building voice assistants
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12use utoipa::ToSchema;
13
14
15use crate::models;
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, ToSchema)]
18pub struct UpdateTestSuiteTestVoiceDto {
19    /// These are the scorers used to evaluate the test.
20    #[serde(rename = "scorers", skip_serializing_if = "Option::is_none")]
21    pub scorers: Option<Vec<models::TestSuiteTestVoiceScorersInner>>,
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 voice 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 UpdateTestSuiteTestVoiceDto {
34    pub fn new() -> UpdateTestSuiteTestVoiceDto {
35        UpdateTestSuiteTestVoiceDto {
36            scorers: None,
37            name: None,
38            script: None,
39            num_attempts: None,
40        }
41    }
42}