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