vapi_client/models/
global_node_plan.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 GlobalNodePlan {
16    /// This is the flag to determine if this node is a global node  @default false
17    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
18    pub enabled: Option<bool>,
19    /// This is the condition that will be checked to determine if the global node should be executed.  @default ''
20    #[serde(rename = "enterCondition", skip_serializing_if = "Option::is_none")]
21    pub enter_condition: Option<String>,
22}
23
24impl GlobalNodePlan {
25    pub fn new() -> GlobalNodePlan {
26        GlobalNodePlan {
27            enabled: None,
28            enter_condition: None,
29        }
30    }
31}