1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47/*
* Pirate Weather API
*
* Pirate Weather provides an open, free, and documented source of government weather data.
*
* The version of the OpenAPI document: 2.8
* Contact: mail@pirateweather.net
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct MinutelyDataInner {
/// The time of the data point in UNIX format.
#[serde(rename = "time", skip_serializing_if = "Option::is_none")]
pub time: Option<i32>,
/// The intensity of precipitation.
#[serde(rename = "precipIntensity", skip_serializing_if = "Option::is_none")]
pub precip_intensity: Option<f64>,
/// The probability of precipitation.
#[serde(rename = "precipProbability", skip_serializing_if = "Option::is_none")]
pub precip_probability: Option<f64>,
/// The standard deviation of the precipitation intensity.
#[serde(
rename = "precipIntensityError",
skip_serializing_if = "Option::is_none"
)]
pub precip_intensity_error: Option<f64>,
/// The type of precipitation occurring.
#[serde(rename = "precipType", skip_serializing_if = "Option::is_none")]
pub precip_type: Option<String>,
}
impl MinutelyDataInner {
pub fn new() -> MinutelyDataInner {
MinutelyDataInner {
time: None,
precip_intensity: None,
precip_probability: None,
precip_intensity_error: None,
precip_type: None,
}
}
}