vapi_client/models/
vapi_model_steps_inner.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, Debug, PartialEq, Serialize, Deserialize)]
16#[serde(untagged)]
17pub enum VapiModelStepsInner {
18    HandoffStep(models::HandoffStep),
19    CallbackStep(models::CallbackStep),
20}
21
22impl Default for VapiModelStepsInner {
23    fn default() -> Self {
24        Self::HandoffStep(Default::default())
25    }
26}
27/// This is a step that takes a handoff from the previous step. This means it won't return to the calling step. The workflow execution will continue linearly.  Use case: - You want to collect information linearly (e.g. a form, provide information, etc).
28#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
29pub enum Type {
30    #[serde(rename = "handoff")]
31    Handoff,
32    #[serde(rename = "callback")]
33    Callback,
34}
35
36impl Default for Type {
37    fn default() -> Type {
38        Self::Handoff
39    }
40}