vapi_client/models/
client_message_workflow_node_started.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 ClientMessageWorkflowNodeStarted {
17    /// This is the type of the message. \"workflow.node.started\" is sent when the active node changes.
18    #[serde(rename = "type")]
19    pub r#type: Type,
20    /// This is the active node.
21    #[serde(rename = "node")]
22    pub node: serde_json::Value,
23}
24
25impl ClientMessageWorkflowNodeStarted {
26    pub fn new(r#type: Type, node: serde_json::Value) -> ClientMessageWorkflowNodeStarted {
27        ClientMessageWorkflowNodeStarted { r#type, node }
28    }
29}
30/// This is the type of the message. \"workflow.node.started\" is sent when the active node changes.
31#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
32pub enum Type {
33    #[serde(rename = "workflow.node.started")]
34    WorkflowPeriodNodePeriodStarted,
35}
36
37impl Default for Type {
38    fn default() -> Type {
39        Self::WorkflowPeriodNodePeriodStarted
40    }
41}