/*
* Vapi API
*
* Voice AI for developers.
*
* The version of the OpenAPI document: 1.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FallbackPlan {
/// This is the list of voices to fallback to in the event that the primary voice provider fails.
#[serde(rename = "voices")]
pub voices: Vec<models::FallbackPlanVoicesInner>,
}
impl FallbackPlan {
pub fn new(voices: Vec<models::FallbackPlanVoicesInner>) -> FallbackPlan {
FallbackPlan { voices }
}
}