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