vapi_client/models/target_plan.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 TargetPlan {
16 /// This is the phone number that is being tested. During the actual test, it'll be called and the assistant attached to it will pick up and be tested. To test an assistant directly, send assistantId instead.
17 #[serde(rename = "phoneNumberId", skip_serializing_if = "Option::is_none")]
18 pub phone_number_id: Option<String>,
19 /// This can be any phone number (even not on Vapi). During the actual test, it'll be called. To test a Vapi number, send phoneNumberId. To test an assistant directly, send assistantId instead.
20 #[serde(rename = "phoneNumber", skip_serializing_if = "Option::is_none")]
21 pub phone_number: Option<models::TestSuitePhoneNumber>,
22 /// This is the assistant being tested. During the actual test, it'll invoked directly. To test the assistant over phone number, send phoneNumberId instead.
23 #[serde(rename = "assistantId", skip_serializing_if = "Option::is_none")]
24 pub assistant_id: Option<String>,
25 /// This is the assistant overrides applied to assistantId before it is tested.
26 #[serde(rename = "assistantOverrides", skip_serializing_if = "Option::is_none")]
27 pub assistant_overrides: Option<models::AssistantOverrides>,
28}
29
30impl TargetPlan {
31 pub fn new() -> TargetPlan {
32 TargetPlan {
33 phone_number_id: None,
34 phone_number: None,
35 assistant_id: None,
36 assistant_overrides: None,
37 }
38 }
39}