pub struct CreateSIPInboundTrunkOptions {
pub metadata: Option<String>,
pub allowed_addresses: Option<Vec<String>>,
pub allowed_numbers: Option<Vec<String>>,
pub auth_username: Option<String>,
pub auth_password: Option<String>,
pub headers: Option<HashMap<String, String>>,
pub headers_to_attributes: Option<HashMap<String, String>>,
pub attributes_to_headers: Option<HashMap<String, String>>,
pub max_call_duration: Option<Duration>,
pub ringing_timeout: Option<Duration>,
pub krisp_enabled: Option<bool>,
}
Fields§
§metadata: Option<String>
Optional free-form metadata.
allowed_addresses: Option<Vec<String>>
CIDR or IPs that traffic is accepted from An empty list means all inbound traffic is accepted.
allowed_numbers: Option<Vec<String>>
Accepted To
values. This Trunk will only accept a call made to
these numbers. This allows you to have distinct Trunks for different phone
numbers at the same provider.
auth_username: Option<String>
Username and password used to authenticate inbound SIP invites May be empty to have no Authentication
auth_password: Option<String>
§headers: Option<HashMap<String, String>>
§headers_to_attributes: Option<HashMap<String, String>>
§attributes_to_headers: Option<HashMap<String, String>>
§max_call_duration: Option<Duration>
§ringing_timeout: Option<Duration>
§krisp_enabled: Option<bool>
Trait Implementations§
Source§impl Clone for CreateSIPInboundTrunkOptions
impl Clone for CreateSIPInboundTrunkOptions
Source§fn clone(&self) -> CreateSIPInboundTrunkOptions
fn clone(&self) -> CreateSIPInboundTrunkOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateSIPInboundTrunkOptions
impl Debug for CreateSIPInboundTrunkOptions
Source§impl Default for CreateSIPInboundTrunkOptions
impl Default for CreateSIPInboundTrunkOptions
Source§fn default() -> CreateSIPInboundTrunkOptions
fn default() -> CreateSIPInboundTrunkOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateSIPInboundTrunkOptions
impl RefUnwindSafe for CreateSIPInboundTrunkOptions
impl Send for CreateSIPInboundTrunkOptions
impl Sync for CreateSIPInboundTrunkOptions
impl Unpin for CreateSIPInboundTrunkOptions
impl UnwindSafe for CreateSIPInboundTrunkOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more