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: TypeTrue,
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: TypeTrue, prompt: String) -> AiEdgeCondition {
25        AiEdgeCondition { r#type, prompt }
26    }
27}
28///
29#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
30pub enum TypeTrue {
31    #[serde(rename = "ai")]
32    Ai,
33}
34
35impl Default for TypeTrue {
36    fn default() -> TypeTrue {
37        Self::Ai
38    }
39}