noaa_weather_client 0.1.3

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GridpointWeather {
    #[serde(rename = "values")]
    pub values: Vec<models::GridpointWeatherValuesInner>,
}

impl GridpointWeather {
    pub fn new(values: Vec<models::GridpointWeatherValuesInner>) -> GridpointWeather {
        GridpointWeather { values }
    }
}