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