vapi_client/models/
test_suite.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 TestSuite {
16    /// This is the unique identifier for the test suite.
17    #[serde(rename = "id")]
18    pub id: String,
19    /// This is the unique identifier for the org that this test suite belongs to.
20    #[serde(rename = "orgId")]
21    pub org_id: String,
22    /// This is the ISO 8601 date-time string of when the test suite was created.
23    #[serde(rename = "createdAt")]
24    pub created_at: String,
25    /// This is the ISO 8601 date-time string of when the test suite was last updated.
26    #[serde(rename = "updatedAt")]
27    pub updated_at: String,
28    /// This is the name of the test suite.
29    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
30    pub name: Option<String>,
31    /// This is the phone number ID associated with this test suite.
32    #[serde(rename = "phoneNumberId", skip_serializing_if = "Option::is_none")]
33    pub phone_number_id: Option<String>,
34    /// Override the default tester plan by providing custom assistant configuration for the test agent.  We recommend only using this if you are confident, as we have already set sensible defaults on the tester plan.
35    #[serde(rename = "testerPlan", skip_serializing_if = "Option::is_none")]
36    pub tester_plan: Option<models::TesterPlan>,
37    /// These are the configuration for the assistant / phone number that is being tested.
38    #[serde(rename = "targetPlan", skip_serializing_if = "Option::is_none")]
39    pub target_plan: Option<models::TargetPlan>,
40}
41
42impl TestSuite {
43    pub fn new(id: String, org_id: String, created_at: String, updated_at: String) -> TestSuite {
44        TestSuite {
45            id,
46            org_id,
47            created_at,
48            updated_at,
49            name: None,
50            phone_number_id: None,
51            tester_plan: None,
52            target_plan: None,
53        }
54    }
55}