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 TestSuiteRunTestResult {
    #[serde(rename = "test")]
    pub test: models::TestSuiteTestVoice,
    /// These are the attempts made for this test.
    #[serde(rename = "attempts")]
    pub attempts: Vec<models::TestSuiteRunTestAttempt>,
}

impl TestSuiteRunTestResult {
    pub fn new(
        test: models::TestSuiteTestVoice,
        attempts: Vec<models::TestSuiteRunTestAttempt>,
    ) -> TestSuiteRunTestResult {
        TestSuiteRunTestResult { test, attempts }
    }
}