vapi_client/models/
workflow_google_model.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 WorkflowGoogleModel {
16    /// This is the provider of the model (`google`).
17    #[serde(rename = "provider")]
18    pub provider: ProviderTrue,
19    /// This is the Google model that will be used.
20    #[serde(rename = "model")]
21    pub model: String,
22}
23
24impl WorkflowGoogleModel {
25    pub fn new(provider: ProviderTrue, model: String) -> WorkflowGoogleModel {
26        WorkflowGoogleModel { provider, model }
27    }
28}
29/// This is the provider of the model (`google`).
30#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
31pub enum ProviderTrue {
32    #[serde(rename = "google")]
33    Google,
34}
35
36impl Default for ProviderTrue {
37    fn default() -> ProviderTrue {
38        Self::Google
39    }
40}