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