pub struct CreateOutboundTrunkParams {
pub name: String,
pub address: String,
pub numbers: Vec<String>,
pub transport: Option<SipTransport>,
pub auth: Option<SipAuth>,
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 OutboundTrunkResource::create.
Fields§
§name: StringThe display name. Required.
address: StringThe SIP host, e.g. sip.telnyx.com:5061. Required.
numbers: Vec<String>The E.164 numbers for this trunk. The server rejects an outbound trunk without numbers.
transport: Option<SipTransport>The SIP transport. Defaults to TLS.
auth: Option<SipAuth>The SIP credentials.
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 CreateOutboundTrunkParams
impl Clone for CreateOutboundTrunkParams
Source§fn clone(&self) -> CreateOutboundTrunkParams
fn clone(&self) -> CreateOutboundTrunkParams
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 CreateOutboundTrunkParams
impl Debug for CreateOutboundTrunkParams
Source§impl Default for CreateOutboundTrunkParams
impl Default for CreateOutboundTrunkParams
Source§fn default() -> CreateOutboundTrunkParams
fn default() -> CreateOutboundTrunkParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateOutboundTrunkParams
impl RefUnwindSafe for CreateOutboundTrunkParams
impl Send for CreateOutboundTrunkParams
impl Sync for CreateOutboundTrunkParams
impl Unpin for CreateOutboundTrunkParams
impl UnsafeUnpin for CreateOutboundTrunkParams
impl UnwindSafe for CreateOutboundTrunkParams
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