pub struct WeatherData {Show 17 fields
pub timestamp: DateTime<FixedOffset>,
pub source_id: i32,
pub precipitation: Option<f32>,
pub pressure_msl: Option<f32>,
pub sunshine: Option<f32>,
pub temperature: Option<f32>,
pub wind_direction: Option<f32>,
pub wind_speed: Option<f32>,
pub cloud_cover: Option<f32>,
pub dew_point: Option<f32>,
pub relative_humidity: Option<f32>,
pub visibility: Option<f32>,
pub wind_gust_direction: Option<f32>,
pub wind_gust_speed: Option<f32>,
pub condition: Option<Condition>,
pub icon: Option<String>,
pub fallback_source_ids: Option<Value>,
}Fields§
§timestamp: DateTime<FixedOffset>§source_id: i32§precipitation: Option<f32>§pressure_msl: Option<f32>§sunshine: Option<f32>§temperature: Option<f32>§wind_direction: Option<f32>§wind_speed: Option<f32>§cloud_cover: Option<f32>§dew_point: Option<f32>§relative_humidity: Option<f32>§visibility: Option<f32>§wind_gust_direction: Option<f32>§wind_gust_speed: Option<f32>§condition: Option<Condition>§icon: Option<String>§fallback_source_ids: Option<Value>Trait Implementations§
Source§impl Clone for WeatherData
impl Clone for WeatherData
Source§fn clone(&self) -> WeatherData
fn clone(&self) -> WeatherData
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 WeatherData
impl Debug for WeatherData
Source§impl<'de> Deserialize<'de> for WeatherData
impl<'de> Deserialize<'de> for WeatherData
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 WeatherData
impl PartialEq for WeatherData
impl StructuralPartialEq for WeatherData
Auto Trait Implementations§
impl Freeze for WeatherData
impl RefUnwindSafe for WeatherData
impl Send for WeatherData
impl Sync for WeatherData
impl Unpin for WeatherData
impl UnwindSafe for WeatherData
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