Skip to main content

SetDIDInfoParams

Struct SetDIDInfoParams 

Source
pub struct SetDIDInfoParams {
Show 19 fields pub did: Option<String>, pub routing: Option<Routing>, pub failover_busy: Option<Routing>, pub failover_unreachable: Option<Routing>, pub failover_noanswer: Option<Routing>, pub voicemail: Option<String>, pub pop: Option<i64>, pub dialtime: Option<i64>, pub cnam: Option<i64>, pub callerid_prefix: Option<String>, pub note: Option<String>, pub port_out_pin: Option<i64>, pub billing_type: Option<DidBillingType>, pub record_calls: Option<bool>, pub transcribe: Option<bool>, pub transcription_locale: Option<String>, pub transcription_email: Option<String>, pub transcription_start_delay: Option<i64>, pub voicemail_threshold: Option<i64>,
}
Expand description

- Updates the information from a specific DID.

Parameters for Client::set_did_info (wire method setDIDInfo).

Fields§

§did: Option<String>

DID to be Updated (Example: 5551234567) (required)

§routing: Option<Routing>

Main Routing for the DID (required)

§failover_busy: Option<Routing>

Busy Routing for the DID

§failover_unreachable: Option<Routing>

Unreachable Routing for the DID

§failover_noanswer: Option<Routing>

NoAnswer Routing for the DID

§voicemail: Option<String>

Voicemail for the DID

§pop: Option<i64>

Point of Presence for the DID (“server_pop” values from getServersInfo. Example: 3) (required)

§dialtime: Option<i64>

Dial Time Out for the DID (Example: 60 -> in seconds) (required)

§cnam: Option<i64>

CNAM for the DID (Boolean: 1/0) (required)

§callerid_prefix: Option<String>

Caller ID Prefix for the DID

§note: Option<String>

Note for the DID

§port_out_pin: Option<i64>

Port Out PIN protection is used as a means of authorizing outgoing portability (only for selected US numbers with the lock icon)

§billing_type: Option<DidBillingType>

Billing type for the DID (1 = Per Minute, 2 = Flat) (required)

§record_calls: Option<bool>

Record Calls (Boolean: 1/0)

§transcribe: Option<bool>

Enable Call Transcription (Boolean: 1/0)

§transcription_locale: Option<String>

Transcription locale code (values from getLocales, comma separated for more than one locale up to 10 locales)

§transcription_email: Option<String>

Call Transcription Email

§transcription_start_delay: Option<i64>

Call Transcription Delay Seconds between 0 and 60, Increments of 5 (Example: 10 -> seconds)

§voicemail_threshold: Option<i64>

Voicemail Threshold Seconds between 0 and 60, Increments of 5 (Example: 10 -> seconds) routing, failover_busy, failover_unreachable and failover_noanswer can receive values in the following format => header:record_id Where header could be: account, fwd, vm, sip, grp, ivr, sys, recording, queue, cb, tc, disa, none. Examples: account Used for routing calls to Sub Accounts You can get all sub accounts using the getSubAccounts function fwd Used for routing calls to Forwarding entries. You can get the ID right after creating a Forwarding with setForwarding or by requesting all forwardings entries with getForwardings. vm Used for routing calls to a Voicemail. You can get all voicemails and their IDs using the getVoicemails function sys System Options: hangup = Hangup the Call busy = Busy tone noservice = System Recording: Number not in service disconnected = System Recording: Number has been disconnected dtmf = DTMF Test echo = Sound Quality Test none Used to route calls to no action Examples: ‘account:100001_VoIP’ ‘fwd:1026’ ‘vm:101’ ‘none:’ ‘sys:echo’

Trait Implementations§

Source§

impl Clone for SetDIDInfoParams

Source§

fn clone(&self) -> SetDIDInfoParams

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SetDIDInfoParams

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SetDIDInfoParams

Source§

fn default() -> SetDIDInfoParams

Returns the “default value” for a type. Read more
Source§

impl Serialize for SetDIDInfoParams

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more