Struct openweather_sdk::responses::OneCallResponse
source · pub struct OneCallResponse {
pub lat: f64,
pub lon: f64,
pub timezone: String,
pub timezone_offset: isize,
pub current: Option<Current>,
pub minutely: Option<Vec<Minutely>>,
pub hourly: Option<Vec<Hourly>>,
pub daily: Option<Vec<Daily>>,
pub alerts: Option<Vec<Alert>>,
}
Fields§
§lat: f64
§lon: f64
§timezone: String
§timezone_offset: isize
§current: Option<Current>
§minutely: Option<Vec<Minutely>>
§hourly: Option<Vec<Hourly>>
§daily: Option<Vec<Daily>>
§alerts: Option<Vec<Alert>>
Trait Implementations§
source§impl Clone for OneCallResponse
impl Clone for OneCallResponse
source§fn clone(&self) -> OneCallResponse
fn clone(&self) -> OneCallResponse
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 OneCallResponse
impl Debug for OneCallResponse
source§impl Default for OneCallResponse
impl Default for OneCallResponse
source§fn default() -> OneCallResponse
fn default() -> OneCallResponse
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for OneCallResponse
impl<'de> Deserialize<'de> for OneCallResponse
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 OneCallResponse
impl Display for OneCallResponse
source§impl PartialEq for OneCallResponse
impl PartialEq for OneCallResponse
source§fn eq(&self, other: &OneCallResponse) -> bool
fn eq(&self, other: &OneCallResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OneCallResponse
impl PartialOrd for OneCallResponse
source§fn partial_cmp(&self, other: &OneCallResponse) -> Option<Ordering>
fn partial_cmp(&self, other: &OneCallResponse) -> 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 OneCallResponse
impl Serialize for OneCallResponse
impl StructuralPartialEq for OneCallResponse
Auto Trait Implementations§
impl RefUnwindSafe for OneCallResponse
impl Send for OneCallResponse
impl Sync for OneCallResponse
impl Unpin for OneCallResponse
impl UnwindSafe for OneCallResponse
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