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};

/// GetMiscHolidayCalendar200ResponseSummary : 统计摘要。
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetMiscHolidayCalendar200ResponseSummary {
    /// 查询范围内总天数。
    #[serde(rename = "total_days", skip_serializing_if = "Option::is_none")]
    pub total_days: Option<i32>,
    /// 查询范围内周末天数。
    #[serde(rename = "weekend_days", skip_serializing_if = "Option::is_none")]
    pub weekend_days: Option<i32>,
    /// 查询范围内工作日天数(含法定调休上班)。
    #[serde(rename = "workdays", skip_serializing_if = "Option::is_none")]
    pub workdays: Option<i32>,
    /// 查询范围内休息日天数(含周末和法定休假)。
    #[serde(rename = "rest_days", skip_serializing_if = "Option::is_none")]
    pub rest_days: Option<i32>,
    /// 按 holiday_type 过滤后的节日事件总数。
    #[serde(rename = "holiday_events", skip_serializing_if = "Option::is_none")]
    pub holiday_events: Option<i32>,
    /// 法定休假日天数。
    #[serde(rename = "legal_rest_days", skip_serializing_if = "Option::is_none")]
    pub legal_rest_days: Option<i32>,
    /// 法定调休上班天数。
    #[serde(rename = "legal_workdays", skip_serializing_if = "Option::is_none")]
    pub legal_workdays: Option<i32>,
}

impl GetMiscHolidayCalendar200ResponseSummary {
    /// 统计摘要。
    pub fn new() -> GetMiscHolidayCalendar200ResponseSummary {
        GetMiscHolidayCalendar200ResponseSummary {
            total_days: None,
            weekend_days: None,
            workdays: None,
            rest_days: None,
            holiday_events: None,
            legal_rest_days: None,
            legal_workdays: None,
        }
    }
}