vapi_client/models/
workflow_overrides.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, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct WorkflowOverrides {
16    /// These are values that will be used to replace the template variables in the workflow messages and other text-based fields. This uses LiquidJS syntax. https://liquidjs.com/tutorials/intro-to-liquid.html  So for example, `{{ name }}` will be replaced with the value of `name` in `variableValues`. `{{\"now\" | date: \"%b %d, %Y, %I:%M %p\", \"America/New_York\"}}` will be replaced with the current date and time in New York.  Some VAPI reserved defaults:  - *customer* - the customer object
17    #[serde(rename = "variableValues", skip_serializing_if = "Option::is_none")]
18    pub variable_values: Option<serde_json::Value>,
19}
20
21impl WorkflowOverrides {
22    pub fn new() -> WorkflowOverrides {
23        WorkflowOverrides {
24            variable_values: None,
25        }
26    }
27}