vapi_client/models/
sip_trunk_outbound_authentication_plan.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 SipTrunkOutboundAuthenticationPlan {
16    /// This is not returned in the API.
17    #[serde(rename = "authPassword", skip_serializing_if = "Option::is_none")]
18    pub auth_password: Option<String>,
19    #[serde(rename = "authUsername", skip_serializing_if = "Option::is_none")]
20    pub auth_username: Option<String>,
21    /// This can be used to configure if SIP register is required by the SIP trunk. If not provided, no SIP registration will be attempted.
22    #[serde(rename = "sipRegisterPlan", skip_serializing_if = "Option::is_none")]
23    pub sip_register_plan: Option<models::SipTrunkOutboundSipRegisterPlan>,
24}
25
26impl SipTrunkOutboundAuthenticationPlan {
27    pub fn new() -> SipTrunkOutboundAuthenticationPlan {
28        SipTrunkOutboundAuthenticationPlan {
29            auth_password: None,
30            auth_username: None,
31            sip_register_plan: None,
32        }
33    }
34}