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
15
16
use serde::{Deserialize, Serialize};

use super::{JsonLdContext, RadarStationFeature};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RadarStationsResponse {
    /// JSON-LD context, can be a string, an object, or an array of strings and objects.
    #[serde(rename = "@context", skip_serializing_if = "Option::is_none")]
    pub at_context: Option<Box<JsonLdContext>>,
    /// The type of the GeoJSON object, typically "FeatureCollection".
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,
    /// An array of Feature objects.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub features: Option<Vec<RadarStationFeature>>,
}