Struct openweather_sdk::responses::ZipCodeResponse
source · pub struct ZipCodeResponse {
pub zip: String,
pub name: String,
pub lat: f64,
pub lon: f64,
pub country: String,
}
Fields§
§zip: String
§name: String
§lat: f64
§lon: f64
§country: String
Trait Implementations§
source§impl Clone for ZipCodeResponse
impl Clone for ZipCodeResponse
source§fn clone(&self) -> ZipCodeResponse
fn clone(&self) -> ZipCodeResponse
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 ZipCodeResponse
impl Debug for ZipCodeResponse
source§impl Default for ZipCodeResponse
impl Default for ZipCodeResponse
source§fn default() -> ZipCodeResponse
fn default() -> ZipCodeResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ZipCodeResponse
impl<'de> Deserialize<'de> for ZipCodeResponse
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 Display for ZipCodeResponse
impl Display for ZipCodeResponse
source§impl PartialEq for ZipCodeResponse
impl PartialEq for ZipCodeResponse
source§fn eq(&self, other: &ZipCodeResponse) -> bool
fn eq(&self, other: &ZipCodeResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ZipCodeResponse
impl PartialOrd for ZipCodeResponse
source§fn partial_cmp(&self, other: &ZipCodeResponse) -> Option<Ordering>
fn partial_cmp(&self, other: &ZipCodeResponse) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ZipCodeResponse
impl Serialize for ZipCodeResponse
impl StructuralPartialEq for ZipCodeResponse
Auto Trait Implementations§
impl Freeze for ZipCodeResponse
impl RefUnwindSafe for ZipCodeResponse
impl Send for ZipCodeResponse
impl Sync for ZipCodeResponse
impl Unpin for ZipCodeResponse
impl UnwindSafe for ZipCodeResponse
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