vapi_client/models/fallback_plan.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 FallbackPlan {
17 /// This is the list of voices to fallback to in the event that the primary voice provider fails.
18 #[serde(rename = "voices")]
19 pub voices: Vec<models::FallbackPlanVoicesInner>,
20}
21
22impl FallbackPlan {
23 pub fn new(voices: Vec<models::FallbackPlanVoicesInner>) -> FallbackPlan {
24 FallbackPlan { voices }
25 }
26}