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};
12use utoipa::ToSchema;
13
14
15use crate::models;
16
17#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, ToSchema)]
18#[serde(untagged)]
19pub enum VapiModelStepsInner {
20    HandoffStep(models::HandoffStep),
21    CallbackStep(models::CallbackStep),
22}
23
24impl Default for VapiModelStepsInner {
25    fn default() -> Self {
26        Self::HandoffStep(Default::default())
27    }
28}
29/// 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).
30#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, ToSchema)]
31pub enum Type {
32    #[serde(rename = "handoff")]
33    Handoff,
34    #[serde(rename = "callback")]
35    Callback,
36}
37
38impl Default for Type {
39    fn default() -> Type {
40        Self::Handoff
41    }
42}