vapi-client 0.4.2

Unofficial crate for Vapi - Voice AI for developers.
Documentation
/*
 * 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 WorkflowCustomModel {
    /// This is the provider of the model (`custom`).
    #[serde(rename = "provider")]
    pub provider: ProviderTrue,
    /// This is the custom model that will be used.
    #[serde(rename = "model")]
    pub model: String,
}

impl WorkflowCustomModel {
    pub fn new(provider: ProviderTrue, model: String) -> WorkflowCustomModel {
        WorkflowCustomModel { provider, model }
    }
}
/// This is the provider of the model (`custom`).
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum ProviderTrue {
    #[serde(rename = "custom")]
    Custom,
}

impl Default for ProviderTrue {
    fn default() -> ProviderTrue {
        Self::Custom
    }
}