Skip to main content

OrderDIDVirtualParams

Struct OrderDIDVirtualParams 

Source
pub struct OrderDIDVirtualParams {
Show 16 fields pub digits: Option<i64>, 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<String>, pub callerid_prefix: Option<String>, pub note: Option<String>, pub account: Option<String>, pub monthly: Option<String>, pub setup: Option<String>, pub minute: Option<String>, pub test: bool,
}
Expand description

- Orders and Adds a new Virtual DID Number to the Account.

Parameters for Client::order_did_virtual (wire method orderDIDVirtual).

Fields§

§digits: Option<i64>

Three Digits for the new Virtual DID (Example: 001) (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 (Example: 101)

§pop: Option<i64>

Point of Presence for the DID (Example: 5) (required)

§dialtime: Option<i64>

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

§cnam: Option<String>

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

§account: Option<String>

Reseller Sub Account (Example: ‘100001_VoIP’)

§monthly: Option<String>

Montly Fee for Reseller Client (Example: 3.50)

§setup: Option<String>

Setup Fee for Reseller Client (Example: 1.99)

§minute: Option<String>

Minute Rate for Reseller Client (Example: 0.03)

§test: bool

Set to true if testing how Orders work - Orders can not be undone - When testing, no Orders are made 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 OrderDIDVirtualParams

Source§

fn clone(&self) -> OrderDIDVirtualParams

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 OrderDIDVirtualParams

Source§

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

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

impl Default for OrderDIDVirtualParams

Source§

fn default() -> OrderDIDVirtualParams

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

impl Serialize for OrderDIDVirtualParams

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