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