vapi_client/models/
ghl_tool_provider_details.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 GhlToolProviderDetails {
16    /// This is the Template URL or the Snapshot URL corresponding to the Template.
17    #[serde(rename = "templateUrl", skip_serializing_if = "Option::is_none")]
18    pub template_url: Option<String>,
19    #[serde(rename = "setupInstructions", skip_serializing_if = "Option::is_none")]
20    pub setup_instructions: Option<Vec<models::ToolTemplateSetup>>,
21    /// The type of tool. \"ghl\" for GHL tool.
22    #[serde(rename = "type")]
23    pub r#type: TypeTrue,
24    #[serde(rename = "workflowId", skip_serializing_if = "Option::is_none")]
25    pub workflow_id: Option<String>,
26    #[serde(rename = "workflowName", skip_serializing_if = "Option::is_none")]
27    pub workflow_name: Option<String>,
28    #[serde(rename = "webhookHookId", skip_serializing_if = "Option::is_none")]
29    pub webhook_hook_id: Option<String>,
30    #[serde(rename = "webhookHookName", skip_serializing_if = "Option::is_none")]
31    pub webhook_hook_name: Option<String>,
32    #[serde(rename = "locationId", skip_serializing_if = "Option::is_none")]
33    pub location_id: Option<String>,
34}
35
36impl GhlToolProviderDetails {
37    pub fn new(r#type: TypeTrue) -> GhlToolProviderDetails {
38        GhlToolProviderDetails {
39            template_url: None,
40            setup_instructions: None,
41            r#type,
42            workflow_id: None,
43            workflow_name: None,
44            webhook_hook_id: None,
45            webhook_hook_name: None,
46            location_id: None,
47        }
48    }
49}
50/// The type of tool. \"ghl\" for GHL tool.
51#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
52pub enum TypeTrue {
53    #[serde(rename = "ghl")]
54    Ghl,
55}
56
57impl Default for TypeTrue {
58    fn default() -> TypeTrue {
59        Self::Ghl
60    }
61}