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