pub struct GoogleMapsPlacesV1PlaceAddressComponent {
pub language_code: Option<String>,
pub long_text: Option<String>,
pub short_text: Option<String>,
pub types: Option<Vec<String>>,
}Expand description
The structured components that form the formatted address, if this information is available.
This type is not used in any activity, and only used as part of another schema.
Fields§
§language_code: Option<String>The language used to format this components, in CLDR notation.
long_text: Option<String>The full text description or name of the address component. For example, an address component for the country Australia may have a long_name of “Australia”.
short_text: Option<String>An abbreviated textual name for the address component, if available. For example, an address component for the country of Australia may have a short_name of “AU”.
types: Option<Vec<String>>An array indicating the type(s) of the address component.
Trait Implementations§
Source§impl Clone for GoogleMapsPlacesV1PlaceAddressComponent
impl Clone for GoogleMapsPlacesV1PlaceAddressComponent
Source§fn clone(&self) -> GoogleMapsPlacesV1PlaceAddressComponent
fn clone(&self) -> GoogleMapsPlacesV1PlaceAddressComponent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for GoogleMapsPlacesV1PlaceAddressComponent
impl Default for GoogleMapsPlacesV1PlaceAddressComponent
Source§fn default() -> GoogleMapsPlacesV1PlaceAddressComponent
fn default() -> GoogleMapsPlacesV1PlaceAddressComponent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleMapsPlacesV1PlaceAddressComponent
impl<'de> Deserialize<'de> for GoogleMapsPlacesV1PlaceAddressComponent
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GoogleMapsPlacesV1PlaceAddressComponent
Auto Trait Implementations§
impl Freeze for GoogleMapsPlacesV1PlaceAddressComponent
impl RefUnwindSafe for GoogleMapsPlacesV1PlaceAddressComponent
impl Send for GoogleMapsPlacesV1PlaceAddressComponent
impl Sync for GoogleMapsPlacesV1PlaceAddressComponent
impl Unpin for GoogleMapsPlacesV1PlaceAddressComponent
impl UnwindSafe for GoogleMapsPlacesV1PlaceAddressComponent
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
Mutably borrows from an owned value. Read more