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