vapi_client/models/
test_suite_run_test_attempt.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 TestSuiteRunTestAttempt {
16    /// These are the results of the scorers used to evaluate the test attempt.
17    #[serde(rename = "scorerResults")]
18    pub scorer_results: Vec<models::TestSuiteRunTestAttemptScorerResultsInner>,
19    /// This is the call made during the test attempt.
20    #[serde(rename = "call")]
21    pub call: Box<models::TestSuiteRunTestAttemptCall>,
22}
23
24impl TestSuiteRunTestAttempt {
25    pub fn new(scorer_results: Vec<models::TestSuiteRunTestAttemptScorerResultsInner>, call: models::TestSuiteRunTestAttemptCall) -> TestSuiteRunTestAttempt {
26        TestSuiteRunTestAttempt {
27            scorer_results,
28            call: Box::new(call),
29        }
30    }
31}
32