pub struct AddressComponents {
pub street: Option<String>,
pub suburb: Option<String>,
pub city: Option<String>,
pub region: Option<String>,
pub postal_code: Option<String>,
pub country: Option<String>,
}Expand description
Structured address components
Fields§
§street: Option<String>Street address
suburb: Option<String>Suburb name
city: Option<String>City name
region: Option<String>Region or state
postal_code: Option<String>Postal code
country: Option<String>Country name
Trait Implementations§
Source§impl Clone for AddressComponents
impl Clone for AddressComponents
Source§fn clone(&self) -> AddressComponents
fn clone(&self) -> AddressComponents
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 Debug for AddressComponents
impl Debug for AddressComponents
Source§impl<'de> Deserialize<'de> for AddressComponents
impl<'de> Deserialize<'de> for AddressComponents
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 AddressComponents
impl PartialEq for AddressComponents
Source§impl Serialize for AddressComponents
impl Serialize for AddressComponents
impl Eq for AddressComponents
impl StructuralPartialEq for AddressComponents
Auto Trait Implementations§
impl Freeze for AddressComponents
impl RefUnwindSafe for AddressComponents
impl Send for AddressComponents
impl Sync for AddressComponents
impl Unpin for AddressComponents
impl UnwindSafe for AddressComponents
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