pub struct CreateAddressParams {
pub account_sid: String,
pub customer_name: String,
pub street: String,
pub city: String,
pub region: String,
pub postal_code: String,
pub iso_country: String,
pub friendly_name: Option<String>,
pub emergency_enabled: Option<bool>,
pub auto_correct_address: Option<bool>,
pub street_secondary: Option<String>,
}
Expand description
struct for passing parameters to the method create_address
Fields§
§account_sid: String
The SID of the Account that will be responsible for the new Address resource.
customer_name: String
The name to associate with the new address.
street: String
The number and street address of the new address.
city: String
The city of the new address.
region: String
The state or region of the new address.
postal_code: String
The postal code of the new address.
iso_country: String
The ISO country code of the new address.
friendly_name: Option<String>
A descriptive string that you create to describe the new address. It can be up to 64 characters long.
emergency_enabled: Option<bool>
Whether to enable emergency calling on the new address. Can be: true
or false
.
auto_correct_address: Option<bool>
Whether we should automatically correct the address. Can be: true
or false
and the default is true
. If empty or true
, we will correct the address you provide if necessary. If false
, we won’t alter the address you provide.
street_secondary: Option<String>
The additional number and street address of the address.
Trait Implementations§
Source§impl Clone for CreateAddressParams
impl Clone for CreateAddressParams
Source§fn clone(&self) -> CreateAddressParams
fn clone(&self) -> CreateAddressParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more