pub struct UpdateIncomingPhoneNumberParams {Show 25 fields
pub account_sid: String,
pub sid: String,
pub account_sid2: Option<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 emergency_status: Option<String>,
pub emergency_address_sid: Option<String>,
pub trunk_sid: Option<String>,
pub voice_receive_mode: Option<String>,
pub identity_sid: Option<String>,
pub address_sid: Option<String>,
pub bundle_sid: Option<String>,
}
Expand description
struct for passing parameters to the method update_incoming_phone_number
Fields§
§account_sid: String
The SID of the Account that created the IncomingPhoneNumber resource to update. For more information, see Exchanging Numbers Between Subaccounts.
sid: String
The Twilio-provided string that uniquely identifies the IncomingPhoneNumber resource to update.
account_sid2: Option<String>
The SID of the Account that created the IncomingPhoneNumber resource to update. For more information, see Exchanging Numbers Between Subaccounts.
api_version: Option<String>
The API version to use for incoming calls made to the phone number. The default is 2010-04-01
.
friendly_name: Option<String>
A descriptive string that you created to describe this 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 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 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 phone calls to the 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 phone number. The voice_url
will not be called if a voice_application_sid
or a trunk_sid
is set.
emergency_status: Option<String>
§emergency_address_sid: Option<String>
The SID of the emergency address configuration to use for emergency calling from this phone number.
trunk_sid: Option<String>
The SID of the Trunk we should use to handle phone calls to the 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>
§identity_sid: Option<String>
The SID of the Identity resource that we should associate with the 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 phone number. Some regions require addresses to meet local regulations.
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 UpdateIncomingPhoneNumberParams
impl Clone for UpdateIncomingPhoneNumberParams
Source§fn clone(&self) -> UpdateIncomingPhoneNumberParams
fn clone(&self) -> UpdateIncomingPhoneNumberParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more