vapi_client/models/
ai_edge_condition.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 AiEdgeCondition {
19    #[serde(rename = "type")]
20    pub r#type: Type,
21    #[serde(rename = "matches")]
22    pub matches: Vec<String>,
23}
24
25impl AiEdgeCondition {
26    pub fn new(r#type: Type, matches: Vec<String>) -> AiEdgeCondition {
27        AiEdgeCondition { r#type, matches }
28    }
29}
30///
31#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, OpenApi)]
32pub enum Type {
33    #[serde(rename = "ai")]
34    Ai,
35}
36
37impl Default for Type {
38    fn default() -> Type {
39        Self::Ai
40    }
41}