vapi_client/models/
clone_voice_dto.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 CloneVoiceDto {
16    /// This is the name of the cloned voice in the provider account.
17    #[serde(rename = "name")]
18    pub name: String,
19    /// This is the description of your cloned voice.
20    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
21    pub description: Option<String>,
22    /// Serialized labels dictionary for the voice.
23    #[serde(rename = "labels", skip_serializing_if = "Option::is_none")]
24    pub labels: Option<String>,
25    /// These are the files you want to use to clone your voice. Only Audio files are supported.
26    #[serde(rename = "files")]
27    pub files: Vec<std::path::PathBuf>,
28}
29
30impl CloneVoiceDto {
31    pub fn new(name: String, files: Vec<std::path::PathBuf>) -> CloneVoiceDto {
32        CloneVoiceDto {
33            name,
34            description: None,
35            labels: None,
36            files,
37        }
38    }
39}
40