pub struct CreateInboundTrunkParams {
pub name: String,
pub numbers: Vec<String>,
pub auth: Option<SipAuth>,
pub allowed_addresses: Vec<String>,
pub allowed_numbers: Vec<String>,
pub media_encryption: Option<SipMediaEncryption>,
pub record: Option<bool>,
pub noise_cancellation: Option<bool>,
pub enable_dtmf: Option<bool>,
pub metadata: HashMap<String, String>,
pub tags: Vec<String>,
pub geo_region: Option<SipRegion>,
}Expand description
The parameters for InboundTrunkResource::create.
Fields§
§name: StringThe display name. Required.
numbers: Vec<String>The E.164 numbers this trunk handles. Required, non-empty.
auth: Option<SipAuth>The SIP credentials.
allowed_addresses: Vec<String>The allowed source IPs and CIDRs.
allowed_numbers: Vec<String>The allowed caller-number patterns, e.g. +91*.
media_encryption: Option<SipMediaEncryption>Whether to encrypt media.
record: Option<bool>Whether to record calls on this trunk.
noise_cancellation: Option<bool>Whether to apply noise cancellation.
enable_dtmf: Option<bool>Whether to enable DTMF.
metadata: HashMap<String, String>Free-form metadata.
Free-form tags.
geo_region: Option<SipRegion>The SIP region.
Trait Implementations§
Source§impl Clone for CreateInboundTrunkParams
impl Clone for CreateInboundTrunkParams
Source§fn clone(&self) -> CreateInboundTrunkParams
fn clone(&self) -> CreateInboundTrunkParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateInboundTrunkParams
impl Debug for CreateInboundTrunkParams
Source§impl Default for CreateInboundTrunkParams
impl Default for CreateInboundTrunkParams
Source§fn default() -> CreateInboundTrunkParams
fn default() -> CreateInboundTrunkParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateInboundTrunkParams
impl RefUnwindSafe for CreateInboundTrunkParams
impl Send for CreateInboundTrunkParams
impl Sync for CreateInboundTrunkParams
impl Unpin for CreateInboundTrunkParams
impl UnsafeUnpin for CreateInboundTrunkParams
impl UnwindSafe for CreateInboundTrunkParams
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