uapi_sdk_rust/models/generated/
get_misc_weather_200_response.rs

1/*
2 * UAPI
3 *
4 * UAPI 官方接口文档
5 *
6 * The version of the OpenAPI document: 1.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct GetMiscWeather200Response {
16    #[serde(rename = "adcode", skip_serializing_if = "Option::is_none")]
17    pub adcode: Option<String>,
18    #[serde(rename = "city", skip_serializing_if = "Option::is_none")]
19    pub city: Option<String>,
20    #[serde(rename = "humidity", skip_serializing_if = "Option::is_none")]
21    pub humidity: Option<i32>,
22    #[serde(rename = "province", skip_serializing_if = "Option::is_none")]
23    pub province: Option<String>,
24    #[serde(rename = "report_time", skip_serializing_if = "Option::is_none")]
25    pub report_time: Option<String>,
26    #[serde(rename = "temperature", skip_serializing_if = "Option::is_none")]
27    pub temperature: Option<i32>,
28    #[serde(rename = "weather", skip_serializing_if = "Option::is_none")]
29    pub weather: Option<String>,
30    #[serde(rename = "wind_direction", skip_serializing_if = "Option::is_none")]
31    pub wind_direction: Option<String>,
32    #[serde(rename = "wind_power", skip_serializing_if = "Option::is_none")]
33    pub wind_power: Option<String>,
34}
35
36impl GetMiscWeather200Response {
37    pub fn new() -> GetMiscWeather200Response {
38        GetMiscWeather200Response {
39            adcode: None,
40            city: None,
41            humidity: None,
42            province: None,
43            report_time: None,
44            temperature: None,
45            weather: None,
46            wind_direction: None,
47            wind_power: None,
48        }
49    }
50}
51