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};
12use utoipa::ToSchema;
13
14
15use crate::models;
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, ToSchema)]
18pub struct FallbackPlan {
19    /// This is the list of voices to fallback to in the event that the primary voice provider fails.
20    #[serde(rename = "voices")]
21    pub voices: Vec<models::FallbackPlanVoicesInner>,
22}
23
24impl FallbackPlan {
25    pub fn new(voices: Vec<models::FallbackPlanVoicesInner>) -> FallbackPlan {
26        FallbackPlan { voices }
27    }
28}