pub struct LocationAddress {
pub country_code: String,
pub state: String,
pub city: String,
pub street: String,
}Expand description
Describes an address of a location
Fields§
§country_code: StringA two-letter ISO 3166-1 alpha-2 country code
state: StringState, if applicable; empty if unknown
city: StringCity; empty if unknown
street: StringThe address; empty if unknown
Trait Implementations§
Source§impl Clone for LocationAddress
impl Clone for LocationAddress
Source§fn clone(&self) -> LocationAddress
fn clone(&self) -> LocationAddress
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 LocationAddress
impl Debug for LocationAddress
Source§impl Default for LocationAddress
impl Default for LocationAddress
Source§fn default() -> LocationAddress
fn default() -> LocationAddress
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LocationAddress
impl<'de> Deserialize<'de> for LocationAddress
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 LocationAddress
impl PartialEq for LocationAddress
Source§impl Serialize for LocationAddress
impl Serialize for LocationAddress
impl StructuralPartialEq for LocationAddress
Auto Trait Implementations§
impl Freeze for LocationAddress
impl RefUnwindSafe for LocationAddress
impl Send for LocationAddress
impl Sync for LocationAddress
impl Unpin for LocationAddress
impl UnsafeUnpin for LocationAddress
impl UnwindSafe for LocationAddress
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