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