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};
12use utoipa::OpenApi;
13
14
15use crate::models;
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, OpenApi)]
18pub struct TestSuite {
19    /// This is the unique identifier for the test suite.
20    #[serde(rename = "id")]
21    pub id: String,
22    /// This is the unique identifier for the org that this test suite belongs to.
23    #[serde(rename = "orgId")]
24    pub org_id: String,
25    /// This is the ISO 8601 date-time string of when the test suite was created.
26    #[serde(rename = "createdAt")]
27    pub created_at: String,
28    /// This is the ISO 8601 date-time string of when the test suite was last updated.
29    #[serde(rename = "updatedAt")]
30    pub updated_at: String,
31    /// This is the name of the test suite.
32    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
33    pub name: Option<String>,
34    /// This is the phone number ID associated with this test suite.
35    #[serde(rename = "phoneNumberId", skip_serializing_if = "Option::is_none")]
36    pub phone_number_id: Option<String>,
37}
38
39impl TestSuite {
40    pub fn new(id: String, org_id: String, created_at: String, updated_at: String) -> TestSuite {
41        TestSuite {
42            id,
43            org_id,
44            created_at,
45            updated_at,
46            name: None,
47            phone_number_id: None,
48        }
49    }
50}