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}
35
36impl TestSuite {
37    pub fn new(id: String, org_id: String, created_at: String, updated_at: String) -> TestSuite {
38        TestSuite {
39            id,
40            org_id,
41            created_at,
42            updated_at,
43            name: None,
44            phone_number_id: None,
45        }
46    }
47}
48