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    /// This is the prompt for the AI edge condition. It should evaluate to a boolean.
19    #[serde(rename = "prompt")]
20    pub prompt: String,
21}
22
23impl AiEdgeCondition {
24    pub fn new(r#type: Type, prompt: String) -> AiEdgeCondition {
25        AiEdgeCondition {
26            r#type,
27            prompt,
28        }
29    }
30}
31/// 
32#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
33pub enum Type {
34    #[serde(rename = "ai")]
35    Ai,
36}
37
38impl Default for Type {
39    fn default() -> Type {
40        Self::Ai
41    }
42}
43