๐Ÿ“ฆ rparrett / weather_dashboard

๐Ÿ“„ flags_source_idx_hrrr.rs ยท 40 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
39
40/*
 * 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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct FlagsSourceIdxHrrr {
    /// The X coordinate for the HRRR model.
    #[serde(rename = "x", skip_serializing_if = "Option::is_none")]
    pub x: Option<i32>,
    /// The Y coordinate for the HRRR model.
    #[serde(rename = "y", skip_serializing_if = "Option::is_none")]
    pub y: Option<i32>,
    /// The latitude coordinate for the HRRR model.
    #[serde(rename = "lat", skip_serializing_if = "Option::is_none")]
    pub lat: Option<f64>,
    /// The longitude coordinate for the HRRR model.
    #[serde(rename = "long", skip_serializing_if = "Option::is_none")]
    pub long: Option<f64>,
}

impl FlagsSourceIdxHrrr {
    pub fn new() -> FlagsSourceIdxHrrr {
        FlagsSourceIdxHrrr {
            x: None,
            y: None,
            lat: None,
            long: None,
        }
    }
}