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 SipTrunkOutboundAuthenticationPlan {
    /// This is not returned in the API.
    #[serde(rename = "authPassword", skip_serializing_if = "Option::is_none")]
    pub auth_password: Option<String>,
    #[serde(rename = "authUsername", skip_serializing_if = "Option::is_none")]
    pub auth_username: Option<String>,
    /// This can be used to configure if SIP register is required by the SIP trunk. If not provided, no SIP registration will be attempted.
    #[serde(rename = "sipRegisterPlan", skip_serializing_if = "Option::is_none")]
    pub sip_register_plan: Option<models::SipTrunkOutboundSipRegisterPlan>,
}

impl SipTrunkOutboundAuthenticationPlan {
    pub fn new() -> SipTrunkOutboundAuthenticationPlan {
        SipTrunkOutboundAuthenticationPlan {
            auth_password: None,
            auth_username: None,
            sip_register_plan: None,
        }
    }
}