pub enum GoogleAddressType {
Locality,
Sublocality,
PostalCode,
Country,
AdministrativeAreaLevel1,
AdministrativeAreaLevel2,
Political,
Other(String),
}
Expand description
Representation of common Google Address Types
Variants§
Locality
Indicates an incorporated city or town political entity
Sublocality
Indicates a first-order civil entity below a locality
PostalCode
Indicates a postal code as used to address postal mail within the country
Country
Indicates the national political entity
AdministrativeAreaLevel1
Indicates a first-order civil entity below the country level
AdministrativeAreaLevel2
Indicates a second-order civil entity below the country level
Political
Indicates a political entity
Other(String)
Any other address type found here
Trait Implementations§
Source§impl Clone for GoogleAddressType
impl Clone for GoogleAddressType
Source§fn clone(&self) -> GoogleAddressType
fn clone(&self) -> GoogleAddressType
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 GoogleAddressType
impl Debug for GoogleAddressType
Source§impl<'de> Deserialize<'de> for GoogleAddressType
impl<'de> Deserialize<'de> for GoogleAddressType
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
Source§impl PartialEq for GoogleAddressType
impl PartialEq for GoogleAddressType
Source§impl Serialize for GoogleAddressType
impl Serialize for GoogleAddressType
impl Eq for GoogleAddressType
impl StructuralPartialEq for GoogleAddressType
Auto Trait Implementations§
impl Freeze for GoogleAddressType
impl RefUnwindSafe for GoogleAddressType
impl Send for GoogleAddressType
impl Sync for GoogleAddressType
impl Unpin for GoogleAddressType
impl UnwindSafe for GoogleAddressType
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