pub struct WindowLimitStatus {
pub kind: String,
pub limit_credits: i64,
pub used_credits: i64,
pub reset_at: Option<String>,
pub overridable: Option<bool>,
pub five_hour_soft_continuing: Option<bool>,
pub inflight_held_credits: Option<i64>,
}Expand description
单窗口限额用量 —— QuotaSummary.windowLimits 元素(与 hold 阶段窗口闸同源)。
Fields§
§kind: StringFIVE_HOUR | WEEKLY
limit_credits: i64§used_credits: i64§reset_at: Option<String>预计恢复时间(ISO-8601 UTC);窗口内无用量时缺席。
overridable: Option<bool>该窗此刻可否被用户“继续“开关豁免(5h 软限额时 true;周窗恒 false)。老网关缺席。
five_hour_soft_continuing: Option<bool>服务端合成位:该窗已用满,但用户的“继续“开关正在放行。新网关恒下发,老网关缺席(缺席 ≠ false)。
inflight_held_credits: Option<i64>窗口内在途预占(微 Credits);缺席 = 不知道(老扣费通/取数失败),不能当 0 读;Some(0) 是事实。
Trait Implementations§
Source§impl Clone for WindowLimitStatus
impl Clone for WindowLimitStatus
Source§impl Debug for WindowLimitStatus
impl Debug for WindowLimitStatus
Source§impl Default for WindowLimitStatus
impl Default for WindowLimitStatus
Source§impl<'de> Deserialize<'de> for WindowLimitStatus
impl<'de> Deserialize<'de> for WindowLimitStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WindowLimitStatus
impl RefUnwindSafe for WindowLimitStatus
impl Send for WindowLimitStatus
impl Sync for WindowLimitStatus
impl Unpin for WindowLimitStatus
impl UnsafeUnpin for WindowLimitStatus
impl UnwindSafe for WindowLimitStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more