pub struct GooglePlace {
pub address_components: Vec<GoogleAddressComponent>,
}
Expand description
Representation of a Google Place
Fields§
§address_components: Vec<GoogleAddressComponent>
List of address components
Implementations§
Source§impl GooglePlace
impl GooglePlace
Sourcepub fn address_component_by_type(
&self,
address_type: GoogleAddressType,
) -> Option<&GoogleAddressComponent>
pub fn address_component_by_type( &self, address_type: GoogleAddressType, ) -> Option<&GoogleAddressComponent>
Finds the first address component of this Google Place which matches the Address Type
Trait Implementations§
Source§impl Clone for GooglePlace
impl Clone for GooglePlace
Source§fn clone(&self) -> GooglePlace
fn clone(&self) -> GooglePlace
Returns a copy 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 Debug for GooglePlace
impl Debug for GooglePlace
Source§impl<'de> Deserialize<'de> for GooglePlace
impl<'de> Deserialize<'de> for GooglePlace
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
Auto Trait Implementations§
impl Freeze for GooglePlace
impl RefUnwindSafe for GooglePlace
impl Send for GooglePlace
impl Sync for GooglePlace
impl Unpin for GooglePlace
impl UnwindSafe for GooglePlace
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