vapi_client/models/
test_suite.rs

1/*
2 * Vapi API
3 *
4 * API for building voice assistants
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TestSuite {
17    /// This is the unique identifier for the test suite.
18    #[serde(rename = "id")]
19    pub id: String,
20    /// This is the unique identifier for the org that this test suite belongs to.
21    #[serde(rename = "orgId")]
22    pub org_id: String,
23    /// This is the ISO 8601 date-time string of when the test suite was created.
24    #[serde(rename = "createdAt")]
25    pub created_at: String,
26    /// This is the ISO 8601 date-time string of when the test suite was last updated.
27    #[serde(rename = "updatedAt")]
28    pub updated_at: String,
29    /// This is the name of the test suite.
30    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
31    pub name: Option<String>,
32    /// This is the phone number ID associated with this test suite.
33    #[serde(rename = "phoneNumberId", skip_serializing_if = "Option::is_none")]
34    pub phone_number_id: Option<String>,
35}
36
37impl TestSuite {
38    pub fn new(id: String, org_id: String, created_at: String, updated_at: String) -> TestSuite {
39        TestSuite {
40            id,
41            org_id,
42            created_at,
43            updated_at,
44            name: None,
45            phone_number_id: None,
46        }
47    }
48}