pub struct CreateIncomingPhoneNumberLocalParams {Show 24 fields
pub account_sid: String,
pub phone_number: String,
pub api_version: Option<String>,
pub friendly_name: Option<String>,
pub sms_application_sid: Option<String>,
pub sms_fallback_method: Option<String>,
pub sms_fallback_url: Option<String>,
pub sms_method: Option<String>,
pub sms_url: Option<String>,
pub status_callback: Option<String>,
pub status_callback_method: Option<String>,
pub voice_application_sid: Option<String>,
pub voice_caller_id_lookup: Option<bool>,
pub voice_fallback_method: Option<String>,
pub voice_fallback_url: Option<String>,
pub voice_method: Option<String>,
pub voice_url: Option<String>,
pub identity_sid: Option<String>,
pub address_sid: Option<String>,
pub emergency_status: Option<String>,
pub emergency_address_sid: Option<String>,
pub trunk_sid: Option<String>,
pub voice_receive_mode: Option<String>,
pub bundle_sid: Option<String>,
}
Expand description
struct for passing parameters to the method create_incoming_phone_number_local
Fields§
§account_sid: String
The SID of the Account that will create the resource.
phone_number: String
The phone number to purchase specified in E.164 format. E.164 phone numbers consist of a + followed by the country code and subscriber number without punctuation characters. For example, +14155551234.
api_version: Option<String>
The API version to use for incoming calls made to the new phone number. The default is 2010-04-01
.
friendly_name: Option<String>
A descriptive string that you created to describe the new phone number. It can be up to 64 characters long. By default, this is a formatted version of the phone number.
sms_application_sid: Option<String>
The SID of the application that should handle SMS messages sent to the new phone number. If an sms_application_sid
is present, we ignore all of the sms_*_url
urls and use those set on the application.
sms_fallback_method: Option<String>
The HTTP method that we should use to call sms_fallback_url
. Can be: GET
or POST
and defaults to POST
.
sms_fallback_url: Option<String>
The URL that we should call when an error occurs while requesting or executing the TwiML defined by sms_url
.
sms_method: Option<String>
The HTTP method that we should use to call sms_url
. Can be: GET
or POST
and defaults to POST
.
sms_url: Option<String>
The URL we should call when the new phone number receives an incoming SMS message.
status_callback: Option<String>
The URL we should call using the status_callback_method
to send status information to your application.
status_callback_method: Option<String>
The HTTP method we should use to call status_callback
. Can be: GET
or POST
and defaults to POST
.
voice_application_sid: Option<String>
The SID of the application we should use to handle calls to the new phone number. If a voice_application_sid
is present, we ignore all of the voice urls and use only those set on the application. Setting a voice_application_sid
will automatically delete your trunk_sid
and vice versa.
voice_caller_id_lookup: Option<bool>
Whether to lookup the caller’s name from the CNAM database and post it to your app. Can be: true
or false
and defaults to false
.
voice_fallback_method: Option<String>
The HTTP method that we should use to call voice_fallback_url
. Can be: GET
or POST
and defaults to POST
.
voice_fallback_url: Option<String>
The URL that we should call when an error occurs retrieving or executing the TwiML requested by url
.
voice_method: Option<String>
The HTTP method that we should use to call voice_url
. Can be: GET
or POST
and defaults to POST
.
voice_url: Option<String>
The URL that we should call to answer a call to the new phone number. The voice_url
will not be called if a voice_application_sid
or a trunk_sid
is set.
identity_sid: Option<String>
The SID of the Identity resource that we should associate with the new phone number. Some regions require an identity to meet local regulations.
address_sid: Option<String>
The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations.
emergency_status: Option<String>
§emergency_address_sid: Option<String>
The SID of the emergency address configuration to use for emergency calling from the new phone number.
trunk_sid: Option<String>
The SID of the Trunk we should use to handle calls to the new phone number. If a trunk_sid
is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a trunk_sid
will automatically delete your voice_application_sid
and vice versa.
voice_receive_mode: Option<String>
§bundle_sid: Option<String>
The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations.
Trait Implementations§
Source§impl Clone for CreateIncomingPhoneNumberLocalParams
impl Clone for CreateIncomingPhoneNumberLocalParams
Source§fn clone(&self) -> CreateIncomingPhoneNumberLocalParams
fn clone(&self) -> CreateIncomingPhoneNumberLocalParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more