noaa_weather_client 1.3.0

A client library for the NOAA weather.gov API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::models;
use serde::{Deserialize, Serialize};

/// GridpointForecastPeriodTemperature : High/low temperature for the period, depending on whether the period is day or night. This property as an integer value is deprecated. Future versions will express this value as a quantitative value object. To make use of the future standard format now, set the \"forecast_temperature_qv\" feature flag on the request.
/// High/low temperature for the period, depending on whether the period is day or night. This property as an integer value is deprecated. Future versions will express this value as a quantitative value object. To make use of the future standard format now, set the \"forecast_temperature_qv\" feature flag on the request.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum GridpointForecastPeriodTemperature {
    QuantitativeValue(Box<models::QuantitativeValue>),
    Integer(i32),
}

impl Default for GridpointForecastPeriodTemperature {
    fn default() -> Self {
        Self::QuantitativeValue(Default::default())
    }
}