vapi_client/models/
make_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 MakeToolProviderDetails {
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. \"make\" for Make tool.
22    #[serde(rename = "type")]
23    pub r#type: TypeTrue,
24    #[serde(rename = "scenarioId", skip_serializing_if = "Option::is_none")]
25    pub scenario_id: Option<f64>,
26    #[serde(rename = "scenarioName", skip_serializing_if = "Option::is_none")]
27    pub scenario_name: Option<String>,
28    #[serde(rename = "triggerHookId", skip_serializing_if = "Option::is_none")]
29    pub trigger_hook_id: Option<f64>,
30    #[serde(rename = "triggerHookName", skip_serializing_if = "Option::is_none")]
31    pub trigger_hook_name: Option<String>,
32}
33
34impl MakeToolProviderDetails {
35    pub fn new(r#type: TypeTrue) -> MakeToolProviderDetails {
36        MakeToolProviderDetails {
37            template_url: None,
38            setup_instructions: None,
39            r#type,
40            scenario_id: None,
41            scenario_name: None,
42            trigger_hook_id: None,
43            trigger_hook_name: None,
44        }
45    }
46}
47/// The type of tool. \"make\" for Make tool.
48#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
49pub enum TypeTrue {
50    #[serde(rename = "make")]
51    Make,
52}
53
54impl Default for TypeTrue {
55    fn default() -> TypeTrue {
56        Self::Make
57    }
58}