vapi-client 0.4.2

Unofficial crate for Vapi - Voice AI for developers.
Documentation
/*
 * Vapi API
 *
 * Voice AI for developers.
 *
 * The version of the OpenAPI document: 1.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct UpdateTestSuiteTestChatDto {
    /// These are the scorers used to evaluate the test.
    #[serde(rename = "scorers", skip_serializing_if = "Option::is_none")]
    pub scorers: Option<Vec<models::TestSuiteTestVoiceScorersInner>>,
    /// This is the type of the test, which must be chat.
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<TypeTrue>,
    /// This is the name of the test.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// This is the script to be used for the chat test.
    #[serde(rename = "script", skip_serializing_if = "Option::is_none")]
    pub script: Option<String>,
    /// This is the number of attempts allowed for the test.
    #[serde(rename = "numAttempts", skip_serializing_if = "Option::is_none")]
    pub num_attempts: Option<f64>,
}

impl UpdateTestSuiteTestChatDto {
    pub fn new() -> UpdateTestSuiteTestChatDto {
        UpdateTestSuiteTestChatDto {
            scorers: None,
            r#type: None,
            name: None,
            script: None,
            num_attempts: None,
        }
    }
}
/// This is the type of the test, which must be chat.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum TypeTrue {
    #[serde(rename = "chat")]
    Chat,
}

impl Default for TypeTrue {
    fn default() -> TypeTrue {
        Self::Chat
    }
}