๐Ÿ“ฆ rparrett / weather_dashboard

๐Ÿ“„ flags_source_idx.rs ยท 38 lines
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/*
 * 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};

/// FlagsSourceIdx : The X, Y coordinate and the lat/long coordinate for each model used to generate the forecast. Only returned when version>1.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FlagsSourceIdx {
    #[serde(rename = "hrrr", skip_serializing_if = "Option::is_none")]
    pub hrrr: Option<Box<models::FlagsSourceIdxHrrr>>,
    #[serde(rename = "nbm", skip_serializing_if = "Option::is_none")]
    pub nbm: Option<Box<models::FlagsSourceIdxNbm>>,
    #[serde(rename = "gfs", skip_serializing_if = "Option::is_none")]
    pub gfs: Option<Box<models::FlagsSourceIdxGfs>>,
    #[serde(rename = "etopo", skip_serializing_if = "Option::is_none")]
    pub etopo: Option<Box<models::FlagsSourceIdxEtopo>>,
}

impl FlagsSourceIdx {
    /// The X, Y coordinate and the lat/long coordinate for each model used to generate the forecast. Only returned when version>1.
    pub fn new() -> FlagsSourceIdx {
        FlagsSourceIdx {
            hrrr: None,
            nbm: None,
            gfs: None,
            etopo: None,
        }
    }
}