pub struct BuildingAddress {
pub language_code: Option<String>,
pub administrative_area: Option<String>,
pub region_code: Option<String>,
pub locality: Option<String>,
pub postal_code: Option<String>,
pub sublocality: Option<String>,
pub address_lines: Option<Vec<String>>,
}Expand description
JSON template for the postal address of a building in Directory API.
This type is not used in any activity, and only used as part of another schema.
Fields§
§language_code: Option<String>Optional. BCP-47 language code of the contents of this address (if known).
administrative_area: Option<String>Optional. Highest administrative subdivision which is used for postal addresses of a country or region.
region_code: Option<String>Required. CLDR region code of the country/region of the address.
locality: Option<String>Optional. Generally refers to the city/town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave locality empty and use addressLines.
postal_code: Option<String>Optional. Postal code of the address.
sublocality: Option<String>Optional. Sublocality of the address.
address_lines: Option<Vec<String>>Unstructured address lines describing the lower levels of an address.
Trait Implementations§
Source§impl Clone for BuildingAddress
impl Clone for BuildingAddress
Source§fn clone(&self) -> BuildingAddress
fn clone(&self) -> BuildingAddress
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BuildingAddress
impl Debug for BuildingAddress
Source§impl Default for BuildingAddress
impl Default for BuildingAddress
Source§fn default() -> BuildingAddress
fn default() -> BuildingAddress
Source§impl<'de> Deserialize<'de> for BuildingAddress
impl<'de> Deserialize<'de> for BuildingAddress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for BuildingAddress
impl Serialize for BuildingAddress
impl Part for BuildingAddress
Auto Trait Implementations§
impl Freeze for BuildingAddress
impl RefUnwindSafe for BuildingAddress
impl Send for BuildingAddress
impl Sync for BuildingAddress
impl Unpin for BuildingAddress
impl UnwindSafe for BuildingAddress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more