uapi_sdk_rust/models/generated/
get_status_ratelimit_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 GetStatusRatelimit200Response {
16    /// Total number of accepted requests
17    #[serde(rename = "accepts", skip_serializing_if = "Option::is_none")]
18    pub accepts: Option<i32>,
19    /// Number of current in-flight requests
20    #[serde(rename = "in_flight", skip_serializing_if = "Option::is_none")]
21    pub in_flight: Option<i32>,
22    /// Last update time of the status
23    #[serde(rename = "last_update", skip_serializing_if = "Option::is_none")]
24    pub last_update: Option<String>,
25    /// Current concurrency limit
26    #[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
27    pub limit: Option<i32>,
28    /// Calculated system load (in_flight / limit)
29    #[serde(rename = "load", skip_serializing_if = "Option::is_none")]
30    pub load: Option<f64>,
31    /// Minimum observed RTT in milliseconds
32    #[serde(rename = "min_rtt", skip_serializing_if = "Option::is_none")]
33    pub min_rtt: Option<f64>,
34    /// Total number of rejected requests
35    #[serde(rename = "rejects", skip_serializing_if = "Option::is_none")]
36    pub rejects: Option<i32>,
37    /// Smoothed RTT in milliseconds
38    #[serde(rename = "rtt", skip_serializing_if = "Option::is_none")]
39    pub rtt: Option<f64>,
40    /// Total number of throttled requests
41    #[serde(rename = "throttled", skip_serializing_if = "Option::is_none")]
42    pub throttled: Option<i32>,
43}
44
45impl GetStatusRatelimit200Response {
46    pub fn new() -> GetStatusRatelimit200Response {
47        GetStatusRatelimit200Response {
48            accepts: None,
49            in_flight: None,
50            last_update: None,
51            limit: None,
52            load: None,
53            min_rtt: None,
54            rejects: None,
55            rtt: None,
56            throttled: None,
57        }
58    }
59}
60