vapi_client/models/
format_plan_replacements_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::OpenApi;
13
14
15use crate::models;
16
17#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, OpenApi)]
18#[serde(untagged)]
19pub enum FormatPlanReplacementsInner {
20    ExactReplacement(models::ExactReplacement),
21    RegexReplacement(models::RegexReplacement),
22}
23
24impl Default for FormatPlanReplacementsInner {
25    fn default() -> Self {
26        Self::ExactReplacement(Default::default())
27    }
28}
29/// This is the exact replacement type. You can use this to replace a specific word or phrase with a different word or phrase.  Usage: - Replace \"hello\" with \"hi\": { type: 'exact', key: 'hello', value: 'hi' } - Replace \"good morning\" with \"good day\": { type: 'exact', key: 'good morning', value: 'good day' } - Replace a specific name: { type: 'exact', key: 'John Doe', value: 'Jane Smith' } - Replace an acronym: { type: 'exact', key: 'AI', value: 'Artificial Intelligence' } - Replace a company name with its phonetic pronunciation: { type: 'exact', key: 'Vapi', value: 'Vappy' }
30#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, OpenApi)]
31pub enum Type {
32    #[serde(rename = "exact")]
33    Exact,
34    #[serde(rename = "regex")]
35    Regex,
36}
37
38impl Default for Type {
39    fn default() -> Type {
40        Self::Exact
41    }
42}