pub struct Address {Show 14 fields
pub address_line_1: Option<String>,
pub address_line_2: Option<String>,
pub address_line_3: Option<String>,
pub locality: Option<String>,
pub sublocality: Option<String>,
pub sublocality_2: Option<String>,
pub sublocality_3: Option<String>,
pub administrative_district_level_1: Option<String>,
pub administrative_district_level_2: Option<String>,
pub administrative_district_level_3: Option<String>,
pub postal_code: Option<String>,
pub country: Option<Country>,
pub first_name: Option<String>,
pub last_name: Option<String>,
}
Expand description
Represents a physical address.
Fields§
§address_line_1: Option<String>
The first line of the address. Fields that start with address_line provide the address’s most specific details, like street number, street name, and building name. They do not provide less specific details like city, state/province, or country (these details are provided in other fields).
address_line_2: Option<String>
The second line of the address, if any.
address_line_3: Option<String>
The third line of the address, if any.
locality: Option<String>
The city or town of the address. For a full list of field meanings by country, see Working with Addresses..
sublocality: Option<String>
A civil region within the address’s locality, if any.
sublocality_2: Option<String>
A civil region within the address’s sublocality, if any.
sublocality_3: Option<String>
A civil region within the address’s sublocality_2, if any.
administrative_district_level_1: Option<String>
A civil entity within the address’s country. In the US, this is the state. For a full list of field meanings by country, see Working with Addresses.
administrative_district_level_2: Option<String>
A civil entity within the address’s administrative_district_level_1. In the US, this is the county.
administrative_district_level_3: Option<String>
A civil entity within the address’s administrative_district_level_2, if any.
postal_code: Option<String>
The address’s postal code. For a full list of field meanings by country, see Working with Addresses.
country: Option<Country>
The address’s country, in the two-letter format of ISO 3166. For example, US or FR.
first_name: Option<String>
Optional first name when it’s representing recipient.
last_name: Option<String>
Optional last name when it’s representing recipient.