uapi-sdk-rust 0.1.15

UAPI Rust SDK - idiomatic, typed, domain-driven API client.
Documentation
/*
 * UAPI
 *
 * UAPI 官方接口文档
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// GetMiscWeather200ResponseMinutelyPrecip : 分钟级降水预报(minutely=true 时返回,仅国内城市可用,精确到2分钟)
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetMiscWeather200ResponseMinutelyPrecip {
    /// 降水描述
    #[serde(rename = "summary", skip_serializing_if = "Option::is_none")]
    pub summary: Option<String>,
    /// 更新时间
    #[serde(rename = "update_time", skip_serializing_if = "Option::is_none")]
    pub update_time: Option<String>,
    /// 精确到2分钟的数据点
    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
    pub data: Option<Vec<models::GetMiscWeather200ResponseMinutelyPrecipDataInner>>,
}

impl GetMiscWeather200ResponseMinutelyPrecip {
    /// 分钟级降水预报(minutely=true 时返回,仅国内城市可用,精确到2分钟)
    pub fn new() -> GetMiscWeather200ResponseMinutelyPrecip {
        GetMiscWeather200ResponseMinutelyPrecip {
            summary: None,
            update_time: None,
            data: None,
        }
    }
}