vapi-client 0.4.2

Unofficial crate for Vapi - Voice AI for developers.
Documentation
/*
 * Vapi API
 *
 * Voice AI for developers.
 *
 * The version of the OpenAPI document: 1.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GoogleCalendarCreateEventToolProviderDetails {
    /// This is the Template URL or the Snapshot URL corresponding to the Template.
    #[serde(rename = "templateUrl", skip_serializing_if = "Option::is_none")]
    pub template_url: Option<String>,
    #[serde(rename = "setupInstructions", skip_serializing_if = "Option::is_none")]
    pub setup_instructions: Option<Vec<models::ToolTemplateSetup>>,
    /// The type of tool. \"google.calendar.event.create\" for Google Calendar tool.
    #[serde(rename = "type")]
    pub r#type: TypeTrue,
}

impl GoogleCalendarCreateEventToolProviderDetails {
    pub fn new(r#type: TypeTrue) -> GoogleCalendarCreateEventToolProviderDetails {
        GoogleCalendarCreateEventToolProviderDetails {
            template_url: None,
            setup_instructions: None,
            r#type,
        }
    }
}
/// The type of tool. \"google.calendar.event.create\" for Google Calendar tool.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum TypeTrue {
    #[serde(rename = "google.calendar.event.create")]
    GooglePeriodCalendarPeriodEventPeriodCreate,
}

impl Default for TypeTrue {
    fn default() -> TypeTrue {
        Self::GooglePeriodCalendarPeriodEventPeriodCreate
    }
}