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 WorkflowGoogleModel {
    /// This is the provider of the model (`google`).
    #[serde(rename = "provider")]
    pub provider: ProviderTrue,
    /// This is the Google model that will be used.
    #[serde(rename = "model")]
    pub model: String,
}

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

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