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