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", skip_serializing_if = "Option::is_none")]
21    pub call: Option<models::TestSuiteRunTestAttemptCall>,
22    /// This is the call ID for the test attempt.
23    #[serde(rename = "callId", skip_serializing_if = "Option::is_none")]
24    pub call_id: Option<String>,
25    /// This is the metadata for the test attempt.
26    #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
27    pub metadata: Option<models::TestSuiteRunTestAttemptMetadata>,
28}
29
30impl TestSuiteRunTestAttempt {
31    pub fn new(scorer_results: Vec<models::TestSuiteRunTestAttemptScorerResultsInner>) -> TestSuiteRunTestAttempt {
32        TestSuiteRunTestAttempt {
33            scorer_results,
34            call: None,
35            call_id: None,
36            metadata: None,
37        }
38    }
39}
40