vapi_client/models/
test_suite_run_test_result.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 TestSuiteRunTestResult {
16    #[serde(rename = "test")]
17    pub test: models::TestSuiteTestVoice,
18    /// These are the attempts made for this test.
19    #[serde(rename = "attempts")]
20    pub attempts: Vec<models::TestSuiteRunTestAttempt>,
21}
22
23impl TestSuiteRunTestResult {
24    pub fn new(
25        test: models::TestSuiteTestVoice,
26        attempts: Vec<models::TestSuiteRunTestAttempt>,
27    ) -> TestSuiteRunTestResult {
28        TestSuiteRunTestResult { test, attempts }
29    }
30}