pub struct CreatePhoneNumbersParams {
pub name: String,
pub phone_numbers: Vec<String>,
pub is_shared: Option<bool>,
pub media_encryption: Option<SipMediaEncryption>,
pub inbound: PhoneNumberInboundConfig,
pub outbound: PhoneNumberOutboundConfig,
}Expand description
The parameters for PhoneNumbersResource::create.
Fields§
§name: StringThe display name. Required.
phone_numbers: Vec<String>The E.164 numbers to provision. Required, non-empty.
Shares one gateway pair across every number, rather than a pair per
number. Defaults to true.
media_encryption: Option<SipMediaEncryption>Whether to encrypt media.
inbound: PhoneNumberInboundConfigThe inbound gateway configuration. Required.
outbound: PhoneNumberOutboundConfigThe outbound gateway configuration. Required.
Trait Implementations§
Source§impl Clone for CreatePhoneNumbersParams
impl Clone for CreatePhoneNumbersParams
Source§fn clone(&self) -> CreatePhoneNumbersParams
fn clone(&self) -> CreatePhoneNumbersParams
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 CreatePhoneNumbersParams
impl Debug for CreatePhoneNumbersParams
Auto Trait Implementations§
impl Freeze for CreatePhoneNumbersParams
impl RefUnwindSafe for CreatePhoneNumbersParams
impl Send for CreatePhoneNumbersParams
impl Sync for CreatePhoneNumbersParams
impl Unpin for CreatePhoneNumbersParams
impl UnsafeUnpin for CreatePhoneNumbersParams
impl UnwindSafe for CreatePhoneNumbersParams
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