noaa_weather_client 1.2.0

A client library for the NOAA weather.gov API
Documentation
use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TextProductCollection {
    #[serde(rename = "@context", skip_serializing_if = "Option::is_none")]
    pub at_context: Option<Box<models::JsonLdContext>>,
    #[serde(rename = "@graph", skip_serializing_if = "Option::is_none")]
    pub at_graph: Option<Vec<models::TextProduct>>,
}

impl TextProductCollection {
    pub fn new() -> TextProductCollection {
        TextProductCollection {
            at_context: None,
            at_graph: None,
        }
    }
}