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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetStatusRatelimit200Response {
    /// Total number of accepted requests
    #[serde(rename = "accepts", skip_serializing_if = "Option::is_none")]
    pub accepts: Option<i32>,
    /// Number of current in-flight requests
    #[serde(rename = "in_flight", skip_serializing_if = "Option::is_none")]
    pub in_flight: Option<i32>,
    /// Last update time of the status
    #[serde(rename = "last_update", skip_serializing_if = "Option::is_none")]
    pub last_update: Option<String>,
    /// Current concurrency limit
    #[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
    pub limit: Option<i32>,
    /// Calculated system load (in_flight / limit)
    #[serde(rename = "load", skip_serializing_if = "Option::is_none")]
    pub load: Option<f64>,
    /// Minimum observed RTT in milliseconds
    #[serde(rename = "min_rtt", skip_serializing_if = "Option::is_none")]
    pub min_rtt: Option<f64>,
    /// Total number of rejected requests
    #[serde(rename = "rejects", skip_serializing_if = "Option::is_none")]
    pub rejects: Option<i32>,
    /// Smoothed RTT in milliseconds
    #[serde(rename = "rtt", skip_serializing_if = "Option::is_none")]
    pub rtt: Option<f64>,
    /// Total number of throttled requests
    #[serde(rename = "throttled", skip_serializing_if = "Option::is_none")]
    pub throttled: Option<i32>,
}

impl GetStatusRatelimit200Response {
    pub fn new() -> GetStatusRatelimit200Response {
        GetStatusRatelimit200Response {
            accepts: None,
            in_flight: None,
            last_update: None,
            limit: None,
            load: None,
            min_rtt: None,
            rejects: None,
            rtt: None,
            throttled: None,
        }
    }
}