vapi_client/models/format_plan_replacements_inner.rs
1/*
2 * Vapi API
3 *
4 * Voice AI for developers.
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15#[serde(untagged)]
16pub enum FormatPlanReplacementsInner {
17 ExactReplacement(models::ExactReplacement),
18 RegexReplacement(models::RegexReplacement),
19}
20
21impl Default for FormatPlanReplacementsInner {
22 fn default() -> Self {
23 Self::ExactReplacement(Default::default())
24 }
25}
26/// 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' }
27#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
28pub enum TypeTrue {
29 #[serde(rename = "exact")]
30 Exact,
31 #[serde(rename = "regex")]
32 Regex,
33}
34
35impl Default for TypeTrue {
36 fn default() -> TypeTrue {
37 Self::Exact
38 }
39}