vapi_client/models/
update_custom_llm_credential_dto.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 UpdateCustomLlmCredentialDto {
16    /// This is not returned in the API.
17    #[serde(rename = "apiKey", skip_serializing_if = "Option::is_none")]
18    pub api_key: Option<String>,
19    /// This is the authentication plan. Currently supports OAuth2 RFC 6749. To use Bearer authentication, use apiKey
20    #[serde(rename = "authenticationPlan", skip_serializing_if = "Option::is_none")]
21    pub authentication_plan: Option<models::OAuth2AuthenticationPlan>,
22    /// This is the name of credential. This is just for your reference.
23    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
24    pub name: Option<String>,
25}
26
27impl UpdateCustomLlmCredentialDto {
28    pub fn new() -> UpdateCustomLlmCredentialDto {
29        UpdateCustomLlmCredentialDto {
30            api_key: None,
31            authentication_plan: None,
32            name: None,
33        }
34    }
35}