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