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